aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJason <[email protected]>2022-04-07 09:36:19 -0700
committerGitHub <[email protected]>2022-04-07 09:36:19 -0700
commit4322c05f0281c288a95da25d6e374695ef749217 (patch)
tree24f35d58259b17e0b660095f2b579302ff9dcbf7
parent2f16393ad93a2e4d0e9eead329053de003802889 (diff)
downloadPaper-4322c05f0281c288a95da25d6e374695ef749217.tar.gz
Paper-4322c05f0281c288a95da25d6e374695ef749217.zip
Use patched spigot decompiler (#7706)
-rw-r--r--build.gradle.kts14
1 files changed, 13 insertions, 1 deletions
diff --git a/build.gradle.kts b/build.gradle.kts
index 15206e8d13..5b5488b0ab 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -48,10 +48,17 @@ subprojects {
}
}
+val spigotDecompiler: Configuration by configurations.creating
+
repositories {
mavenCentral()
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")
remapper("net.fabricmc:tiny-remapper:0.8.1:fat")
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")
}
@@ -70,6 +78,10 @@ paperweight {
remapRepo.set("https://maven.fabricmc.net/")
decompileRepo.set("https://files.minecraftforge.net/maven/")
+ craftBukkit {
+ fernFlowerJar.set(layout.file(spigotDecompiler.elements.map { it.single().asFile }))
+ }
+
paper {
spigotApiPatchDir.set(layout.projectDirectory.dir("patches/api"))
spigotServerPatchDir.set(layout.projectDirectory.dir("patches/server"))