Any thought why the following cannot resolve the d...
# scripting
c
Any thought why the following cannot resolve the dependency?
Copy code
// a.kts
@file:org.jetbrains.kotlin.script.util.DependsOn("junit:junit:4.11")
org.junit.Assert.assertTrue(true)
Then:
Copy code
$ kotlinc -classpath ~/.kobalt/cache/org/jetbrains/kotlin/kotlin-script-util/1.3.31/kotlin-script-util-1.3.31.jar a.kts
a.kts:3:5: error: unresolved reference: junit
org.junit.Assert.assertTrue(true)
    ^
$
t
-script
is missing
in general scripts should be called via something like this:
Copy code
kotlinc -cp main-kts.jar -script scriptfile.main.kts