aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJason Penilla <[email protected]>2024-12-03 13:34:44 -0700
committerJason Penilla <[email protected]>2024-12-03 13:34:44 -0700
commit71a4ef8d06578009142c1682044663a289a1f404 (patch)
tree7e6881fde3330d9b8dacfeebe65624015c28b4ec
parentf863bb71b0e40bba3453e7c6de5ea91722610854 (diff)
downloadPaper-71a4ef8d06578009142c1682044663a289a1f404.tar.gz
Paper-71a4ef8d06578009142c1682044663a289a1f404.zip
Set java launcher for api generate task
-rw-r--r--paper-api-generator/build.gradle.kts2
1 files changed, 2 insertions, 0 deletions
diff --git a/paper-api-generator/build.gradle.kts b/paper-api-generator/build.gradle.kts
index 62ceb696a5..e1e434773a 100644
--- a/paper-api-generator/build.gradle.kts
+++ b/paper-api-generator/build.gradle.kts
@@ -1,5 +1,6 @@
import io.papermc.paperweight.PaperweightSourceGeneratorHelper
import io.papermc.paperweight.extension.PaperweightSourceGeneratorExt
+import io.papermc.paperweight.util.defaultJavaLauncher
plugins {
java
@@ -25,6 +26,7 @@ tasks.register<JavaExec>("generate") {
mainClass.set("io.papermc.generator.Main")
classpath(sourceSets.main.map { it.runtimeClasspath })
args(projectDir.toPath().resolve("generated").toString())
+ javaLauncher = javaToolchains.defaultJavaLauncher(project)
}
tasks.test {