Ilya Chernikov
49003c9839
Do not embed script-runtime into main-kts:
...
it is unused in it and may interfere with mixed usages when
main-kts is used along with legacy/default scripts
2019-09-13 13:19:26 +02:00
Ilya Chernikov
8989bfa235
Fix main-kts jsr223 direct bindings processing
...
Before the jsr context was configured only when a dependency or import
annotation is encountered, so direct properties mapping didn't work
without using any of the annotations. (It was implemented like this
as a workaround due to the problem with handlers composability, that was
fixed some time ago.)
2019-09-13 13:19:25 +02:00
Ilya Chernikov
2ed8fa7624
Convert main task creating helper to lazy API, refactor accordingly
2019-08-21 20:20:08 +02:00
Ilya Chernikov
5fe843d754
Refactor main-kts build scripts - fix red code in IDEA
2019-07-26 08:55:15 +02:00
Ilya Chernikov
a13d452cd8
Implement JSR223 host in the main-kts jar
...
also improve diagnostics on configuration instantiation
2019-07-26 08:55:14 +02:00
Ilya Chernikov
dc4370ff08
Implement support for new script customizations in command line compiler
...
refactor and fix internals in many places to make it work
add appropriate tests for main-kts case
2019-07-11 15:50:25 +02:00
Vyacheslav Gerasimov
2d6a3cb2c8
Build: Introduce flag for disabling jar post processing
...
proguard, relocation, etc.
2019-06-27 17:56:52 +03:00
Vyacheslav Gerasimov
db3b01d2d4
Build: Centralize compiler dist build logic in :kotlin-compiler project
2019-06-27 17:56:48 +03:00
Ilya Chernikov
e542c9ea84
Refactor script definitions and resolving/refining infrastructure:
...
- implement wrappers to wrap old and new API providers and resolvers
- make old API deprecated (with error where possible)
- drop old internal classes related to the old API
- refactor usages accordingly
- fix and add missing features to the scripting API where necessary
2019-06-06 17:21:00 +02:00
Ilya Chernikov
29ba650c77
Fix main-kts script classpath calculation
2019-05-25 10:10:29 +02:00
Vyacheslav Gerasimov
a6e3a0f5c3
Build: Use embedded configuration in kotlin-main-kts project
2019-05-14 18:07:16 +03:00
Ilya Chernikov
917fc56f36
Fix main-kts dependencies after extracting scripting
2019-04-24 17:27:03 +02:00
Sergey Rostov
aac564872c
Scripting, main-kts: temporary workaround to avoid IDE exceptions on Kotlin project
...
Exclude script definition from resources classpath to avoid IDE exceptions
on kotlin project. This is done by moving MainKtsScript to new `jar-resources`
folder which is not resource root.
#EA-127827
#KT-31176
2019-04-24 09:14:34 +03:00
nikita.movshin
65244b4bea
Update copyright.
...
Change the copyright from "JetBrains s.r.o." to
"JetBrains s.r.o. and Kotlin Project contributors"
Update only 2 lines copyright.
2019-04-23 20:09:22 +03:00
Ilya Chernikov
dd3ac74bd2
Refactor ivy resolver
...
add support for artifacts with type an classifier
use ibiblio resolver by default - it is designed for working with maven central
add test, but disable it - see comments for the reason and todos
2019-03-20 21:19:24 +01:00
Ilya Chernikov
fc9a6dec7e
Add optional suffix to the script template markers
...
add suffix to the markers in the repo
#KT-28593 fixed
2019-03-20 21:19:24 +01:00
Ilya Chernikov
6e55116519
Relocate packages that could be possibly used in the scripts themselves
...
#KT-30210 fixed
2019-03-19 17:11:52 +01:00
Vyacheslav Gerasimov
a42f607ecf
Build: Fix artifacts signing for maven central
...
With gradle > 5.0 `publish()` helper call should be done before
`noDefaultJar()` or any other artifact hacks, otherwise singing plugin doesn't sign any jars
2019-02-27 13:21:17 +03:00
Yaroslav Russkih
7135f1972a
Use https everywhere - production code
2019-02-19 21:35:36 +01:00
Vyacheslav Gerasimov
f58acbeef5
Build: implement useBootstrapStdlib flag
...
Excludes stdlib projects from build and uses bootstrap stdlib artifacts
#KT-29205
2019-01-21 21:09:40 +03:00
Ilya Chernikov
5fffeda534
Keep ivy resolvers in the main-kts.jar
...
#KT-29301 fixed
2019-01-18 18:17:45 +01:00
Ilya Chernikov
2bb5e8f51f
Implement and use helpers for economical classpath update in script configs
2019-01-18 18:17:45 +01:00
Ilya Chernikov
02f2c941c8
Add import support to main-kts, with test
2019-01-10 10:59:32 +01:00
Ilya Chernikov
44ea2bf1d4
Introduce script names and location ids, use them in diagnostics and...
...
for virtual file names. Also fix compiled script serialization.
2018-12-20 17:09:23 +01:00
Ilya Chernikov
9e5d04b836
Add generic interfaces to dependency resolvers
2018-12-13 18:00:11 +01:00
Ilya Chernikov
e91fd63a15
Add config entry for main.kts to recognise it in all locations
2018-11-29 09:47:15 +01:00
Ilya Chernikov
499146db0e
Fix pill problem with main-kts-test, reenabling pill for main-kts modules
2018-09-27 16:27:55 +02:00
Ilya Chernikov
7b7f87a3b7
Move ivy resolver to the main-kts to avoid classloading issues...
...
e.g. when main-kts is loaded in IDEA
#KT-26828 fixed
2018-09-27 12:56:19 +02:00
Vyacheslav Gerasimov
1f0e9f24c5
Fix noDefaultJar helper for gradle 4.10
...
artifacts don't implement ArchivePublishArtifact in gradle 4.10
2018-09-26 16:19:09 +03:00
Ilya Chernikov
127451e1d9
Add kotlin-main-kts.jar to the dist
2018-09-25 14:13:28 +02:00
Yan Zhulanow
005955326f
Pill: Exclude kotlin-main-kts module from JPS
2018-09-24 17:54:24 +03:00
Ilya Chernikov
18b53f331a
Fix proguarding of the main-kts
2018-09-21 15:12:53 +02:00
Ilya Chernikov
7dd168d4ef
[minor] remove dumping of the proguard config to the wrong file
2018-09-18 08:36:47 +02:00
Ilya Chernikov
d760299dc1
Implement context classpath extraction using particular class,...
...
Use it in the main-kts.
Also improve diagnoistics related to the definition loading.
#KT-26828 fixed (after this commit - finally, see also another related commit)
2018-09-15 15:44:53 +02:00
Ilya Chernikov
a02d5b4b21
Rename script annotation params according to configuration keys...
...
rename evaluation params consistently too
2018-09-11 14:56:51 +02:00
Ilya Chernikov
fa98b0afac
Implement main-kts project and test
2018-09-07 18:47:18 +02:00