Fix running programs from jvmDemo with Kotlin 1.9.10 plugin
This commit is contained in:
@@ -166,3 +166,12 @@ if (shouldPublish) {
|
|||||||
sign(publishing.publications)
|
sign(publishing.publications)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
kotlin {
|
||||||
|
jvm().mainRun {
|
||||||
|
classpath(kotlin.jvm().compilations.getByName("demo").output.allOutputs)
|
||||||
|
classpath(kotlin.jvm().compilations.getByName("demo").configurations.runtimeDependencyConfiguration!!)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.withType<JavaExec>().matching { it.name == "jvmRun" }.configureEach { workingDir = rootDir }
|
||||||
@@ -11,3 +11,4 @@ org.gradle.caching=true
|
|||||||
# Whether to automatically bundle the Kotlin standard library (true by default)
|
# Whether to automatically bundle the Kotlin standard library (true by default)
|
||||||
# https://kotlinlang.org/docs/gradle.html#dependency-on-the-standard-library
|
# https://kotlinlang.org/docs/gradle.html#dependency-on-the-standard-library
|
||||||
kotlin.stdlib.default.dependency=true
|
kotlin.stdlib.default.dependency=true
|
||||||
|
kotlin.mpp.import.legacyTestSourceSetDetection=true
|
||||||
Reference in New Issue
Block a user