Skip to content

Commit

Permalink
fix builds
Browse files Browse the repository at this point in the history
  • Loading branch information
granny authored Jan 22, 2024
1 parent ac6ad25 commit ef8f750
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,5 @@ build-data/
Tentacles-API
Tentacles-MojangAPI
Tentacles-Server
paper-api-generator
*.jar
7 changes: 7 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,13 @@ paperweight {
serverPatchDir = layout.projectDirectory.dir("patches/server")
serverOutputDir = layout.projectDirectory.dir("Tentacles-Server")
}

patchTasks.register("generatedApi") {
isBareDirectory = true
upstreamDirPath = "paper-api-generator/generated"
patchDir = layout.projectDirectory.dir("patches/generated-api")
outputDir = layout.projectDirectory.dir("paper-api-generator/generated")
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ if (!file(".git").exists()) {

rootProject.name = "tentacles"

for (name in listOf("Tentacles-API", "Tentacles-Server")) {
for (name in listOf("Tentacles-API", "Tentacles-Server", "paper-api-generator")) {
val projName = name.lowercase(Locale.ENGLISH)
include(projName)
findProject(":$projName")!!.projectDir = file(name)
Expand Down

0 comments on commit ef8f750

Please sign in to comment.