https://kotlinlang.org logo
Title
d

Dico

03/16/2019, 10:22 PM
Does IntelliJ have support for understanding the dependencies of a script file? I.e. using
@file:DependsOn("group:artifact:version")
and not getting reference errors. See https://blog.jetbrains.com/kotlin/2018/09/kotlin-1-3-rc-is-here-migrate-your-coroutines/#Scripting
l

louiscad

03/17/2019, 12:38 AM
#scripting or #intellij, no?
g

gildor

03/17/2019, 7:07 AM
As I know IDEA supports it if you create project with this script and manually add script definition to project settings, but never tried it
n

Nikky

03/17/2019, 2:28 PM
this will most likely work once
main-kts.jar
or whatever scripting host defines this is added to the classpath, i never use that one, i added dependnecies through jars on the local filesystem and that worked fine in idea