voddan
10/11/2018, 1:09 PM.kts
file it works anywhere except the /src/main/kotlin
folder. The exception is src/main/kotlin/test.kts: (3, 1): Cannot access script base class 'kotlin.script.templates.standard.ScriptTemplateWithArgs'. Check your module classpath for missing or conflicting dependencies
. What is the problem?ribesg
10/11/2018, 1:30 PM.kts
file there, but I'm pretty sure that your problem is related to the fact that sources in src/main/kotlin
are compiled in a different context; or rather that .kts
files outside of a standard/setup location are compiled in a different contextvoddan
10/11/2018, 1:35 PMribesg
10/11/2018, 1:36 PMvoddan
10/11/2018, 1:47 PMkotlinc
would work because it doesn't care about gradleribesg
10/11/2018, 1:58 PMvoddan
10/11/2018, 2:00 PMvoddan
10/11/2018, 2:08 PM