JoakimForslund
07/15/2019, 7:53 AMApplication.kt
file placed inside my package called `box`:
tasks.create("run", JavaExec::class) {
dependsOn("jvmMainClasses", "jvmJar")
main = "box.ApplicationKt"
classpath = files(
kotlin.targets["jvm"].compilations["main"].output.allOutputs.files,
configurations["jvmRuntimeClasspath"]
)
args = listOf()
}
However, this results in : Error: Could not find or load main class box.ApplicationKt
Anyone have any pointers to run a jvm target?JoakimForslund
07/15/2019, 8:03 AMApplication.kt
to the commonMain, and it seems to find that, but still not the jvmMain Application.kt
JoakimForslund
07/15/2019, 8:11 AMkotlin.targets["jvm"].compilations["main"].output.allOutputs
and now it seem to workJoakimForslund
07/15/2019, 8:11 AMgildor
07/15/2019, 8:30 AMJoakimForslund
07/15/2019, 1:18 PMgildor
07/15/2019, 4:16 PM