Don't keep all attributes in the shrinked .jar files
This commit is contained in:
parent
bdddec5cc8
commit
dc65bd45ae
|
@ -41,7 +41,8 @@ subprojects {
|
|||
keep("class fr.username404.snowygui.fabric.** { * ; }")
|
||||
keep("class fr.username404.snowygui.forge.** { * ; }")
|
||||
keepclassmembers("class fr.username404.snowygui.** { public protected <methods>; }")
|
||||
keepattributes(); keepdirectories(); keeppackagenames(); keepparameternames()
|
||||
keepattributes("*Annotation*, Signature, InnerClasses, EnclosingMethod, MethodParameters, Synthetic, Exceptions")
|
||||
keepdirectories(); keeppackagenames(); keepparameternames()
|
||||
obfuscationdictionary("$dictionariesDir/dictionary.txt")
|
||||
classobfuscationdictionary("$dictionariesDir/classdictionary.txt")
|
||||
adaptclassstrings()
|
||||
|
@ -61,7 +62,7 @@ subprojects {
|
|||
|
||||
// Note: dontpreverify() should NOT be used, it will cause errors at runtime
|
||||
useuniqueclassmembernames()
|
||||
optimizations("method/inlining/*, code/allocation/variable, class/merging/vertical, code/removal/advanced, code/simplification/branch, code/merging")
|
||||
optimizations("method/inlining/*, code/allocation/variable, class/merging/vertical, class/merging/horizontal, code/removal/advanced, code/simplification/branch, code/merging")
|
||||
optimizationpasses(4)
|
||||
overloadaggressively()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue