Dominaezzz
01/08/2019, 6:24 PMkotlin.targets.mingw.compilations.main.getBinary('EXECUTABLE', buildType)
to get the binary for execution. What is the jvm equivalent? kotlin.targets.jvm.compilations.main.getJar('EXECUTABLE', buildType)
doesn't work 🙂.jvmJar.archivePath
or at least it's close enough.Exception in thread "main" java.lang.NoClassDefFoundError: kotlin/jvm/internal/Intrinsics
. Not sure how to add kotlin-runtime to classpath in this setup. 😞r4zzz4k
01/09/2019, 7:30 AMDominaezzz
01/09/2019, 8:32 AMh0tk3y
01/09/2019, 11:09 AMtask run(type: JavaExec) {
main = 'com.my.entry.Point'
def target = kotlin.targets.jvm
def compilation = target.compilations.main
classpath = files(
compilation.runtimeDependencyFiles,
compilation.output.allOutputs
)
}
r4zzz4k
01/09/2019, 11:32 AM