Add -Penginehub.obf.none=true gradle property to build mojmap worldedit-bukkit. (#2316)

This simply takes the -dev adapter jars instead of the obfuscated ones, creating otherwise the exact same worldedit-bukkit jar. This jar can be used on mojmap paper servers.

Closes #1929.
This commit is contained in:
wizjany authored and GitHub committed 2023-05-16 17:05:30 -04:00
1 parent b8b89267c1
commit abc8c1f256
1 file changed
+7 -1
+7 -1
View File
@@ -27,7 +27,13 @@ val adapters = configurations.create("adapters") {
isCanBeResolved = true
shouldResolveConsistentlyWith(configurations["runtimeClasspath"])
attributes {
attribute(Obfuscation.OBFUSCATION_ATTRIBUTE, objects.named(Obfuscation.OBFUSCATED))
attribute(Obfuscation.OBFUSCATION_ATTRIBUTE,
if ((project.findProperty("enginehub.obf.none") as String?).toBoolean()) {
objects.named(Obfuscation.NONE)
} else {
objects.named(Obfuscation.OBFUSCATED)
}
)
}
}