Don't keep all attributes in the shrinked .jar files

This commit is contained in:
Username404-59 2021-04-17 15:15:15 +02:00
parent bdddec5cc8
commit dc65bd45ae
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 3 additions and 2 deletions

View File

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