Skip to content

Instantly share code, notes, and snippets.

View a1pl's full-sized avatar

sunsuke a1pl

View GitHub Profile
@CorgiTaco
CorgiTaco / mc_forge_mod_proguard.gradle
Last active June 16, 2026 00:24
Proguard task for a Forge Minecraft mod. Tested against Forge 1.18.2. Setting up Proguard in gradle can be found here: https://www.guardsquare.com/manual/setup/gradle
tasks.register('proguard', ProGuardTask) {
dependsOn tasks.jar
keep(["allowobfuscation": true], "public class ${project.group}.** { *; }")
keep(["allowobfuscation": false], "public class ${project.group}.mixin.** { *; }") //TODO: Update mixin config in jar
optimizationpasses(10)
keepattributes("*Annotation*")
verbose()