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

Dieser Commit ist enthalten in:
Alexander Brandes 2023-05-20 21:01:34 +02:00
Ursprung 5e3222c55d
Commit 86f06b7527
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 158F5701A6AAD00C

Datei anzeigen

@ -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)
}
)
} }
} }