Use patched spigot decompiler (#7706)

This commit is contained in:
Jason 2022-04-07 09:36:19 -07:00 committed by GitHub
parent 2f16393ad9
commit 4322c05f02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 1 deletions

View File

@ -48,10 +48,17 @@ subprojects {
} }
} }
val spigotDecompiler: Configuration by configurations.creating
repositories { repositories {
mavenCentral() mavenCentral()
maven("https://papermc.io/repo/repository/maven-public/") { maven("https://papermc.io/repo/repository/maven-public/") {
content { onlyForConfigurations("paperclip") } content {
onlyForConfigurations(
configurations.paperclip.name,
spigotDecompiler.name,
)
}
} }
} }
@ -59,6 +66,7 @@ dependencies {
paramMappings("net.fabricmc:yarn:1.18.2+build.2:mergedv2") paramMappings("net.fabricmc:yarn:1.18.2+build.2:mergedv2")
remapper("net.fabricmc:tiny-remapper:0.8.1:fat") remapper("net.fabricmc:tiny-remapper:0.8.1:fat")
decompiler("net.minecraftforge:forgeflower:1.5.498.29") decompiler("net.minecraftforge:forgeflower:1.5.498.29")
spigotDecompiler("io.papermc:patched-spigot-fernflower:0.1+build.4")
paperclip("io.papermc:paperclip:3.0.2") paperclip("io.papermc:paperclip:3.0.2")
} }
@ -70,6 +78,10 @@ paperweight {
remapRepo.set("https://maven.fabricmc.net/") remapRepo.set("https://maven.fabricmc.net/")
decompileRepo.set("https://files.minecraftforge.net/maven/") decompileRepo.set("https://files.minecraftforge.net/maven/")
craftBukkit {
fernFlowerJar.set(layout.file(spigotDecompiler.elements.map { it.single().asFile }))
}
paper { paper {
spigotApiPatchDir.set(layout.projectDirectory.dir("patches/api")) spigotApiPatchDir.set(layout.projectDirectory.dir("patches/api"))
spigotServerPatchDir.set(layout.projectDirectory.dir("patches/server")) spigotServerPatchDir.set(layout.projectDirectory.dir("patches/server"))