Fix running programs from jvmDemo with Kotlin 1.9.10 plugin
This commit is contained in:
@@ -165,4 +165,13 @@ if (shouldPublish) {
|
|||||||
setRequired({ isReleaseVersion && gradle.taskGraph.hasTask("publish") })
|
setRequired({ isReleaseVersion && gradle.taskGraph.hasTask("publish") })
|
||||||
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 }
|
||||||
@@ -10,4 +10,5 @@ org.gradle.parallel=true
|
|||||||
org.gradle.caching=true
|
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