Ilya Chernikov
7ae2054cba
Add a link to hostConfiguration from compilation and evaluation ones
...
also add possibility to supply functional defaults for keys in PropertiesCollection
2019-05-25 10:10:31 +02:00
Ilya Chernikov
30c6147223
Get rid of UsefulTestCase to avoid dependencies, parallelize tests
2019-05-25 10:10:30 +02:00
Ilya Chernikov
8c7460451e
[minor] fix some warnings
2019-05-25 10:10:30 +02:00
Ilya Chernikov
1dd197f201
Add missing scripting tests to the global task, make them parallel
2019-05-25 10:10:30 +02:00
Ilya Chernikov
ea068e483c
Implement JSR-223 functionality on top of the "new" REPL
2019-05-25 10:10:29 +02:00
Ilya Chernikov
46915df56f
Implement "legacy" REPL wrappers on top of the "new" scripting infrastructure
2019-05-25 10:10:29 +02:00
Ilya Chernikov
010ae5326d
Create core environment in test mode properly
2019-05-25 10:10:28 +02:00
Ilya Chernikov
89006f16cd
Prepare scripting infrastructure for REPL:
...
- refactor script compiler to simplify extending it for repl
- add repl snippet compilation functions to the new scripting compiler
- extract util functions into appropriate files
- extract repl part into separate class
- extract bridge definition and related definitions into separate file
2019-05-25 10:10:28 +02:00
Sergey Rostov
00ed49df68
JPS Build: rename packedJars property to embedded, get rid of ShadowJar
...
Configuration should have name "embedded" for IDEA import.
ShadowJar doesn't required anymore as it is already embedded in
default jar task.
2019-05-23 16:12:03 +03:00
Natalia Selezneva
710c2cd0a4
JPS Build: rename packedJars property to embedded
2019-05-23 15:14:30 +03:00
Vadim Brilyantov
01a05a5495
Move daemon jar from compiler
2019-05-17 15:51:52 +03:00
Dmitry Gridin
37c856290f
Fix minor compile warnings
2019-04-25 19:47:39 +07:00
Ilya Chernikov
4b8d9c8fdd
Fix classloaders order on script evaluation
...
the dependencies one should be a parent for the modules one, to avoid
incompatibility problems. Also fixes main-kts tests
2019-04-24 17:27:03 +02:00
nikita.movshin
abb7d3ab46
Update copyright.
...
Change the copyright from "JetBrains s.r.o." to
"JetBrains s.r.o. and Kotlin Project contributors"
Update 2 lines comment
2019-04-23 20:09:27 +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
9900ac2462
Fix runtime compatibility with the obsolete script jvm eval config options...
...
also switch mainKtsTest to the mew option
2019-04-18 13:01:50 +02:00
Ilya Chernikov
a65dafc37d
Move scripting support classes to the scripting compiler impl module
2019-04-17 22:03:58 +02:00
Ilya Chernikov
199b32cad7
Merge scripting-impl to scripting-compiler-impl module...
...
to continue merging with the branch with further scripting refactorings
2019-04-17 22:03:57 +02:00
Ilya Chernikov
a82b386d81
Add a new module for scripting compilation infrastructure...
...
add embeddable variant as well
2019-04-17 22:03:57 +02:00
Ilya Chernikov
67ad3773de
Implement main method generation in scripts and runnable jar saving
...
refactor necessary parts on the way
2019-04-16 11:55:23 +02:00
Ilya Chernikov
c896b4873b
Rearrange scripting host classes, so the runner part is independent from the compiler
2019-04-16 11:55:23 +02:00
Ilya Chernikov
a6f0bd6677
Refactor jvm evaluation to make module operations cleaner and more robust
...
in addition:
- hide internal configuration keys
- add keys for flags controlling evaluation
- add initial module implementation for using scripts from a classpath
2019-04-16 11:55:22 +02:00
Ilya Chernikov
90444502a6
Extend evaluation API for easier passing of evaluation configuration
...
refactor helpers accordingly
2019-04-16 11:55:22 +02:00
Ilya Chernikov
fa58b41e43
Implement script evaluation configuration refinement
2019-04-16 11:55:21 +02:00
Ilya Chernikov
c51d4a4405
Implement simple "saving evaluators" to classes and to a jar
2019-04-16 11:55:20 +02:00
Caleb Brinkman
c84c33cbd6
KT-30816 BasicJvmScriptEvaluator incorrect arg order
...
https://youtrack.jetbrains.com/issue/KT-30816
Change BasicJvmScriptEvaluator to pass constructor parameters in the
correct order, include tests for scripts w/ provided properties, and
implicit receiver, and both.
2019-04-11 10:17:55 +00:00
Vyacheslav Gerasimov
92248d609f
Build: Centralize build logic for kotlin-plugin in :prepare:idea-plugin
2019-04-10 17:54:06 +03:00
Yan Zhulanow
0b94aa4be2
Pill: Disable a couple of scripting modules
...
Seems like these modules use the embeddable verson of the scripting host dependency that is not built in the Pill build.
2019-03-27 22:15:26 +03:00
Ilya Chernikov
c56382a62b
Move common idea and compiler parts of the scripting plugin to the new jar
2019-03-21 12:02:29 +01:00
Ilya Chernikov
1823ba1c48
Fix deserialization of the compiled script
...
#KT-29741 fixed
2019-03-19 17:11:52 +01:00
Ilya Chernikov
b395cb120a
Implement import test witch caching
...
reproduced KT-29741
plus some tests refactoring
2019-03-19 17:11:52 +01:00
Ilya Chernikov
931b1c66d8
Fix equality and serializability of scripting data, fix relevant caching behaviour
2019-03-19 17:11:52 +01:00
Ilya Chernikov
7a4d369c9f
Extend script cache tests, revealing that cache doesn't work in fact
2019-03-19 17:11:52 +01:00
Ilya Chernikov
18198987a3
Restore jvmTarget 1.6 for scripting libraries that could be used externally
...
#KT-29319 fixed
2019-03-13 08:47:17 +01:00
Alexander Udalov
c7c377e1b1
Use JvmTarget.DEFAULT instead of JVM_1_6 where applicable
2019-03-07 11:42:31 +01:00
Yan Zhulanow
eb1543c71a
Minor: Fix a few compilation warnings in compiler and compiler tests, fix formatting
2019-03-06 03:30:55 +03:00
Ilya Chernikov
196e274929
Move calculating dependencies from script sources to plugin
2019-03-02 08:10:16 +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
Alexander Udalov
f733bda912
Fix compilation error introduced in d374723e3c
2019-02-25 19:22:09 +01:00
Ilya Chernikov
d374723e3c
Restore default jvmTarget for scripts that was lost after refactoring
2019-02-25 18:22:27 +01:00
Nicolay Mitropolsky
9bf55d81ca
Making kts-compiler able to dig out the ClassPath from the intellij PluginClassLoader
2019-02-22 13:51:47 +03:00
Ilya Chernikov
731df8d3cc
Proper handling of the scripting compiler plugin in JSR-223 with daemon
2019-02-10 13:33:21 +01:00
Ilya Chernikov
5ef6ad916f
Apply scripting compiler plugin to the jvm scripting host compiler
2019-02-10 13:31:57 +01:00
Mikhael Bogdanov
a122cba862
Switch Kotlin project to jvm-target 1.8
...
#KT-29405
2019-01-31 07:43:05 +01:00
Ilya Chernikov
4f9e844735
Improve standard libs search logic for script compilation:
...
- refactor appropriate functions to accept optional classloader (not used yet)
- try to load from thread context classloader first
- fallback to marker class classloader in the appropriate function
2019-01-28 13:15:36 +01:00
Ilya Chernikov
95d782b6ca
Implement diagnostics for ignored compiler arguments on script compilation
2019-01-28 13:15:36 +01:00
Ilya Chernikov
7ee9801c5f
Implement additional compiler arguments support in scripts
2019-01-28 13:15:36 +01:00
Ilya Chernikov
298aaf999e
[minor] fix function name typo
2019-01-28 13:15: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
877dd7ee47
Change default jvmTarget for scripts compilation via jvmhost to 1.8
...
#KT-29319 fixed
2019-01-18 18:17:47 +01:00