Tomasz Krakowiak
01/09/2022, 9:08 PMtasks.create<JavaExec>("run") {
classpath = //?
mainClass.set("com.example.MainKt")
}
sourceSets
container is at this point empty. configurations
container does not have jvmMainRuntime
configuration.Hanno
01/09/2022, 9:16 PMephemient
01/09/2022, 9:24 PMval jvmJar by tasks.existing
val jvmRuntimeClasspath by configurations.existing
tasks.register<JavaExec>("run") {
description = "Runs this project as a JVM application"
group = ApplicationPlugin.APPLICATION_GROUP
classpath(jvmJar, jvmRuntimeClasspath)
mainClass.set("...")
}
ephemient
01/09/2022, 9:26 PM