Skip to content

Commit

Permalink
Set javaLauncher for JavaExec tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
StefMa committed Apr 3, 2024
1 parent 8338c17 commit ad5df18
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions buildSrc/src/main/kotlin/pklJavaLibrary.gradle.kts
Expand Up @@ -24,6 +24,10 @@ java {
}
}

tasks.withType<JavaExec>().configureEach {
javaLauncher.set(javaToolchains.launcherFor(java.toolchain))
}

artifacts {
// make sources Jar available to other subprojects
add("sourcesJar", tasks["sourcesJar"])
Expand Down

0 comments on commit ad5df18

Please sign in to comment.