mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2025-03-07 13:48:00 +08:00
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:
parent
b8b89267c1
commit
abc8c1f256
@ -27,7 +27,13 @@
|
||||
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)
|
||||
}
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user