Reputation: 32226
To run a Kotlin script one needs to execute:
kotlinc -script myScript.kts
Do I need to download the Kotlin command-line compiler to have access to it, or there is an easier way?
Upvotes: 1
Views: 478
Reputation: 32226
Kotlin scripting is the solution to this problem, but it is still experimental, and it didn't work for me very well.
I ended up using Gradle Kotlin DSL. Here is a nice samples repo to get you started fast.
Upvotes: 1