Generated API

Fixes build
This commit is contained in:
Spottedleaf 2024-01-10 14:03:31 -08:00
parent be90fb8d36
commit 4d78338afe
2 changed files with 7 additions and 0 deletions

1
.gitignore vendored
View File

@ -48,5 +48,6 @@ run/
Folia-Server
Folia-API
paper-api-generator
!gradle/wrapper/gradle-wrapper.jar

View File

@ -65,6 +65,12 @@ paperweight {
serverPatchDir.set(layout.projectDirectory.dir("patches/server"))
serverOutputDir.set(layout.projectDirectory.dir("Folia-Server"))
}
patchTasks.register("generatedApi") {
isBareDirectory = true
upstreamDirPath = "paper-api-generator/generated"
patchDir = layout.projectDirectory.dir("patches/generatedApi")
outputDir = layout.projectDirectory.dir("paper-api-generator/generated")
}
}
}