ilya.chernikov
05/31/2019, 3:26 PMilya.chernikov
05/31/2019, 3:33 PM@DependsOn(...)
in your scripts, so the dependencies are fetched from e.g. maven on compilation, then the place to start is kotlin-main-kts
- https://github.com/JetBrains/kotlin/tree/1.3.40/libraries/tools/kotlin-main-kts - and in particular this place, if you want to customize yourself - https://github.com/JetBrains/kotlin/blob/1.3.40/libraries/tools/kotlin-main-kts/src/org/jetbrains/kotlin/mainKts/scriptDef.kt#L28ilya.chernikov
05/31/2019, 3:35 PMcedric
05/31/2019, 3:37 PMilya.chernikov
05/31/2019, 3:38 PMcedric
05/31/2019, 3:38 PMilya.chernikov
05/31/2019, 3:43 PMrefneConfiguration
block from the MainKtsScriptDefinition
and use the dependenciesFromClassContext
function used around the same place.ilya.chernikov
05/31/2019, 3:44 PMilya.chernikov
05/31/2019, 3:48 PMcedric
05/31/2019, 3:50 PMilya.chernikov
05/31/2019, 3:50 PMilya.chernikov
05/31/2019, 3:51 PMilya.chernikov
05/31/2019, 3:53 PMcedric
06/03/2019, 8:17 PMengine.eval()
?ilya.chernikov
06/03/2019, 9:41 PMcedric
06/03/2019, 9:50 PMcedric
06/03/2019, 9:51 PMProcessBuilder
allows. Seems like eval()
should allow that too.DALDEI
07/22/2019, 2:25 PMilya.chernikov
07/25/2019, 3:52 PMcedric
07/25/2019, 3:55 PMilya.chernikov
07/25/2019, 4:15 PMcedric
07/25/2019, 5:35 PMFile("")
) that is not stuck to the directory where the JVM launching that script was started. Probably the directory that this script is in.