mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-30 08:25:58 +02:00
[ci skip] Use Java toolchain for run tasks (#6108)
This commit is contained in:
parent
fa7bf2d3dc
commit
737c162fe2
@ -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)
|
||||||
+}
|
+}
|
||||||
+
|
+
|
||||||
|
Loading…
Reference in New Issue
Block a user