From 4d78338afea610ea8aee20aa0f3cbb36f443640a Mon Sep 17 00:00:00 2001 From: Spottedleaf Date: Wed, 10 Jan 2024 14:03:31 -0800 Subject: [PATCH] Generated API Fixes build --- .gitignore | 1 + build.gradle.kts | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/.gitignore b/.gitignore index 800ad42f00..be5d0968a7 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 722116289d..f9badde4fd 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") + } } }