[ci skip] Use Java toolchain for run tasks (#6108)
This commit is contained in:
@@ -135,6 +135,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ doFirst {
|
+ doFirst {
|
||||||
+ workingDir.mkdirs()
|
+ workingDir.mkdirs()
|
||||||
+ }
|
+ }
|
||||||
|
+ javaLauncher.set(project.javaToolchains.launcherFor {
|
||||||
|
+ languageVersion.set(JavaLanguageVersion.of(project.tasks.compileJava.get().options.release.get()))
|
||||||
|
+ })
|
||||||
+ block(this)
|
+ block(this)
|
||||||
+}
|
+}
|
||||||
+
|
+
|
||||||
|
|||||||
Reference in New Issue
Block a user