Alex Ostrovsky
06/10/2021, 2:11 PMilya.chernikov
06/14/2021, 8:22 AMAlex Ostrovsky
06/14/2021, 6:57 PMilya.chernikov
06/14/2021, 7:05 PMAlex Ostrovsky
06/14/2021, 7:15 PMAlex Ostrovsky
06/14/2021, 7:20 PMilya.chernikov
06/14/2021, 7:31 PM.main.kts
extension e.g. with the kotlin
runner from command line. E.g. try to run the examples https://github.com/Kotlin/kotlin-script-examples/blob/master/jvm/main-kts/MainKts.md several times.
For simplified implementation you may have a look at the relevant parts in this definition - https://github.com/Kotlin/kotlin-script-examples/blob/master/jvm/simple-main-kts/simple-main-kts/src/main/kotlin/org/jetbrains/kotlin/script/examples/simpleMainKts/scriptDef.kt, or check the implementation of these tests - https://github.com/JetBrains/kotlin/blob/master/libraries/scripting/jvm-host-test/test/kotlin/script/experimental/jvmhost/test/CachingTest.kt
If default caching doesn't work for you for some reasons, please tell and we'll see what could be done next.Alex Ostrovsky
06/14/2021, 7:39 PMAlex Ostrovsky
06/14/2021, 7:40 PMilya.chernikov
06/14/2021, 7:49 PM