I would like to run kts-script from Maven.
The obvious way would be to download
kotlin-compiler.x.x.x.jar and run
kotlinc -script my-script.kts
from maven. But then I would have to locally install and keep up-to-date kotlin compiler on all the machines…
Instead it would be great to use kotlin jar from the Maven repository and call kotlin compiler using
exec-maven-plugin:java maven plugin. But unfortunately, I can’t get it to work. Please see https://stackoverflow.com/questions/64871438/run-kotlib-kts-script-from-maven .
Are there other ways of achieving this goal?
Ahy help is very appreciated . Thank you!