Usual Kotlin project is pretty heavyweight and involves separate Mave / Gradle and IDE config. Usually it’s Android or Server Side server with lots of files etc.
I would like to use Kotlin also for small scripts. Like replacement for Python or even BASH.
1) So you just write some
file in some folder, and then just run it like
and it runs it.
2) Sometimes you have a minimal set of dependencies, and say you store it as
and you just want to use it in your script (but without involving heavy machinery like Maven / Gradle) an easy way something like
So, is that possible? And do people use something like that?
I know about kotlin scripts, I tried it but don’t want to use it. I don’t remember exactly why, but there were some issues or limitations, it was not the same as usual kotlin file.