1
0
Fork 0
mirror of https://github.com/PaperMC/Paper.git synced 2025-01-25 09:34:44 +01:00

[ci skip] Move generated API sources to src/generated/java ()

This removes a required patch set for forks.
This commit is contained in:
Jason Penilla 2025-01-14 21:38:56 -07:00 committed by GitHub
parent 8e80d4e158
commit b6be7cd0ae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
41 changed files with 2 additions and 2 deletions

View file

@ -25,7 +25,7 @@ tasks.register<JavaExec>("generate") {
dependsOn(tasks.check)
mainClass.set("io.papermc.generator.Main")
classpath(sourceSets.main.map { it.runtimeClasspath })
args(projectDir.toPath().resolve("generated").toString())
args(rootProject.layout.projectDirectory.dir("paper-api/src/generated/java").asFile.absolutePath)
javaLauncher = javaToolchains.defaultJavaLauncher(project)
}

View file

@ -93,7 +93,7 @@ dependencies {
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
val generatedApiPath: java.nio.file.Path = rootProject.projectDir.toPath().resolve("paper-api-generator/generated")
val generatedApiPath: java.nio.file.Path = layout.projectDirectory.dir("src/generated/java").asFile.toPath()
idea {
module {
generatedSourceDirs.add(generatedApiPath.toFile())