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?Application.kt
to the commonMain, and it seems to find that, but still not the jvmMain Application.kt
kotlin.targets["jvm"].compilations["main"].output.allOutputs
and now it seem to workgildor
07/15/2019, 8:30 AMJoakimForslund
07/15/2019, 1:18 PMgildor
07/15/2019, 4:16 PM