Don't use defaultToolchain method for run tasks

This commit is contained in:
Jason Penilla 2024-04-23 14:39:36 -07:00
parent 8004d7f08a
commit 178efa2903

View file

@ -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 }