File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
buildSrc/src/main/kotlin/org/openrndr/extra/convention Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -165,4 +165,13 @@ if (shouldPublish) {
165
165
setRequired({ isReleaseVersion && gradle.taskGraph.hasTask(" publish" ) })
166
166
sign(publishing.publications)
167
167
}
168
- }
168
+ }
169
+
170
+ kotlin {
171
+ jvm().mainRun {
172
+ classpath(kotlin.jvm().compilations.getByName(" demo" ).output.allOutputs)
173
+ classpath(kotlin.jvm().compilations.getByName(" demo" ).configurations.runtimeDependencyConfiguration!! )
174
+ }
175
+ }
176
+
177
+ tasks.withType<JavaExec >().matching { it.name == " jvmRun" }.configureEach { workingDir = rootDir }
Original file line number Diff line number Diff line change @@ -10,4 +10,5 @@ org.gradle.parallel=true
10
10
org.gradle.caching =true
11
11
# Whether to automatically bundle the Kotlin standard library (true by default)
12
12
# https://kotlinlang.org/docs/gradle.html#dependency-on-the-standard-library
13
- kotlin.stdlib.default.dependency =true
13
+ kotlin.stdlib.default.dependency =true
14
+ kotlin.mpp.import.legacyTestSourceSetDetection =true
You can’t perform that action at this time.
0 commit comments