diff --git a/.gitignore b/.gitignore index 800ad42..be5d096 100644 --- a/.gitignore +++ b/.gitignore @@ -48,5 +48,6 @@ run/ Folia-Server Folia-API +paper-api-generator !gradle/wrapper/gradle-wrapper.jar diff --git a/build.gradle.kts b/build.gradle.kts index 7221162..f9badde 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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") + } } }