mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-26 02:47:44 +01:00
Set java launcher for api generate task
This commit is contained in:
parent
f863bb71b0
commit
71a4ef8d06
@ -1,5 +1,6 @@
|
|||||||
import io.papermc.paperweight.PaperweightSourceGeneratorHelper
|
import io.papermc.paperweight.PaperweightSourceGeneratorHelper
|
||||||
import io.papermc.paperweight.extension.PaperweightSourceGeneratorExt
|
import io.papermc.paperweight.extension.PaperweightSourceGeneratorExt
|
||||||
|
import io.papermc.paperweight.util.defaultJavaLauncher
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
java
|
java
|
||||||
@ -25,6 +26,7 @@ tasks.register<JavaExec>("generate") {
|
|||||||
mainClass.set("io.papermc.generator.Main")
|
mainClass.set("io.papermc.generator.Main")
|
||||||
classpath(sourceSets.main.map { it.runtimeClasspath })
|
classpath(sourceSets.main.map { it.runtimeClasspath })
|
||||||
args(projectDir.toPath().resolve("generated").toString())
|
args(projectDir.toPath().resolve("generated").toString())
|
||||||
|
javaLauncher = javaToolchains.defaultJavaLauncher(project)
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.test {
|
tasks.test {
|
||||||
|
Loading…
Reference in New Issue
Block a user