I can't find information on this, I found differen...
# scripting
p
I can't find information on this, I found different things on different places: Is there an official way to define Maven dependencies and to cashe compilation or is ktscript still the preferred way for running scripts? I found it super convenient to just append --idea and have an idea instance set up.
i
Maven dependencies are supported with
kotlin-main-kts
library, distributed with kotlin binaries and published to maven itself. You can find an example in 1.3-RC announcement https://blog.jetbrains.com/kotlin/2018/09/kotlin-1-3-rc-is-here-migrate-your-coroutines/ and in the kotlin repository - https://github.com/JetBrains/kotlin/tree/1.3.0/libraries/tools/kotlin-main-kts-test Cashing is supported in the API, but there is no default implementation in any of the default hosts.
👍 1