I wonder if this is possible, I mean, without Gradle or Maven?
For further actions, you may consider blocking this person and/or reporting abuse
I wonder if this is possible, I mean, without Gradle or Maven?
For further actions, you may consider blocking this person and/or reporting abuse
Salad Lam -
Mohamed El Laithy -
Valerii Popov -
Arseni Kavalchuk -
Top comments (5)
Yes, it is possible.
First, install the official Kotlin Scripting environment through SDK Man.
Then, just add the
@file:DependsOn
directive in the.kts
script file e.g.:Done
How do I install with SDK Man?
Thanks that it is an official support as well, though I don't know how well it would integrate with IntelliJ.
Kotlin support in VSCode is horrible. Seems to be only syntax highlighting.
cf. kotlinlang.org/docs/tutorials/comm...
You've got everything that you've in regular Kotlin projects
Sure, try github.com/holgerbrandl/kscript
It works, but Java 8 is required... (Cannot use 11 or 14)
Fortunately, it is much easier (and safer?) to switch Java on Linux than on macOS.
computingforgeeks.com/how-to-set-d...
Cool, it even has
--idea
support. (That is, full IDE suggestion.)