mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-01 17:01:56 +01:00
Don't use defaultToolchain method for run tasks
This commit is contained in:
parent
8004d7f08a
commit
178efa2903
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
+ workingDir = rootProject.layout.projectDirectory
|
+ workingDir = rootProject.layout.projectDirectory
|
||||||
+ .dir(providers.gradleProperty("paper.runWorkDir").getOrElse("run"))
|
+ .dir(providers.gradleProperty("paper.runWorkDir").getOrElse("run"))
|
||||||
+ .asFile
|
+ .asFile
|
||||||
+ javaLauncher.set(project.javaToolchains.defaultJavaLauncher(project))
|
+ javaLauncher.set(project.javaToolchains.launcherFor(project.java.toolchain))
|
||||||
+
|
+
|
||||||
+ if (rootProject.childProjects["test-plugin"] != null) {
|
+ if (rootProject.childProjects["test-plugin"] != null) {
|
||||||
+ val testPluginJar = rootProject.project(":test-plugin").tasks.jar.flatMap { it.archiveFile }
|
+ val testPluginJar = rootProject.project(":test-plugin").tasks.jar.flatMap { it.archiveFile }
|
||||||
|
|
Loading…
Reference in a new issue