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.:
@file:DependsOn
.kts
@file:DependsOn("org.jetbrains.kotlinx:kotlinx-html-jvm:0.6.11")
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.
sdk install kotlin
cf. kotlinlang.org/docs/tutorials/comm...
I don't know how well it would integrate with IntelliJ.
You've got everything that you've in regular Kotlin projects
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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