Skip to content

Commit

Permalink
Generated API
Browse files Browse the repository at this point in the history
Fixes build
  • Loading branch information
Spottedleaf committed Jan 10, 2024
1 parent be90fb8 commit 4d78338
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,6 @@ run/

Folia-Server
Folia-API
paper-api-generator

!gradle/wrapper/gradle-wrapper.jar
6 changes: 6 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
}
}

Expand Down

0 comments on commit 4d78338

Please sign in to comment.