Add -Penginehub.obf.none=true gradle property to build mojmap worldedit-bukkit.

This commit is contained in:
Alexander Brandes 2023-05-20 21:01:34 +02:00
parent 5e3222c55d
commit 86f06b7527
No known key found for this signature in database
GPG Key ID: 158F5701A6AAD00C

View File

@ -47,7 +47,13 @@ val adapters = configurations.create("adapters") {
isCanBeResolved = true isCanBeResolved = true
shouldResolveConsistentlyWith(configurations["runtimeClasspath"]) shouldResolveConsistentlyWith(configurations["runtimeClasspath"])
attributes { 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)
}
)
} }
} }