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 (#11977)
This removes a required patch set for forks.
This commit is contained in:
parent
8e80d4e158
commit
b6be7cd0ae
41 changed files with 2 additions and 2 deletions
paper-api-generator
paper-api
build.gradle.kts
src/generated/java
com/destroystokyo/paper/entity/ai
io/papermc/paper/registry/keys
AttributeKeys.javaBannerPatternKeys.javaBiomeKeys.javaBlockTypeKeys.javaCatVariantKeys.javaDamageTypeKeys.javaEnchantmentKeys.javaFluidKeys.javaFrogVariantKeys.javaGameEventKeys.javaInstrumentKeys.javaItemTypeKeys.javaJukeboxSongKeys.javaMapDecorationTypeKeys.javaMenuTypeKeys.javaMobEffectKeys.javaPaintingVariantKeys.javaSoundEventKeys.javaStructureKeys.javaStructureTypeKeys.javaTrimMaterialKeys.javaTrimPatternKeys.javaVillagerProfessionKeys.javaVillagerTypeKeys.javaWolfVariantKeys.java
tags
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
@ -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())
|
||||
|
|
Loading…
Add table
Reference in a new issue