I didnt manage to get it to work either. Workarounded by adding a second gradle subproject for that, maybe thats a feasible workaround for you too up until someone tells us how its done ^^"
e
ephemient
01/09/2022, 9:24 PM
easiest way to do it, IMO:
Copy code
val 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("...")
}