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