mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-15 14:13:56 +01:00
[ci skip] Use Java toolchain for run tasks (#6108)
This commit is contained in:
parent
fa7bf2d3dc
commit
737c162fe2
1 changed files with 3 additions and 0 deletions
|
@ -135,6 +135,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
+ doFirst {
|
||||
+ workingDir.mkdirs()
|
||||
+ }
|
||||
+ javaLauncher.set(project.javaToolchains.launcherFor {
|
||||
+ languageVersion.set(JavaLanguageVersion.of(project.tasks.compileJava.get().options.release.get()))
|
||||
+ })
|
||||
+ block(this)
|
||||
+}
|
||||
+
|
||||
|
|
Loading…
Reference in a new issue