Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #This ProGuard configuration file illustrates how to process ProGuard itself.
- #Configuration files for typical applications will be very similar.
- #Usage:
- #java -jar proguard.jar @proguard.pro
- #-dontwarn
- -verbose
- Specify the input jars, output jars, and library jars.
- -injars C:\Users\danie\IdeaProjects\SimpleBlockRegen_ProGuard\build\SimpleBlockRegen-0.0.2-SNAPSHOT.jar
- -outjars C:\Users\danie\IdeaProjects\SimpleBlockRegen_ProGuard\build\libs\SimpleBlockRegen_proguard.jar
- -libraryjars C:\Users\danie\Downloads\APIs\simplixstorage-3.2.4.jar
- -libraryjars C:\Users\danie\Downloads\APIs\paper.jar
- -libraryjars C:\Users\danie\Downloads\APIs\adventure-api-4.11.0.jar
- -libraryjars C:\Users\danie\Downloads\APIs\worldguard-bukkit-7.0.7-dist.jar
- -libraryjars C:\Users\danie\Downloads\APIs\worldedit-bukkit-7.2.10.jar
- -libraryjars C:\Users\danie\Downloads\APIs\MMOItems-6.7.2.jar
- -libraryjars C:\Users\danie\Downloads\APIs\MythicLib-dist-1.3.1.jar
- -libraryjars C:\Users\danie\Downloads\APIs\protectionstones-2.8.4.jar
- -libraryjars C:\Users\danie\Downloads\APIs\placeholderapi-2.11.1.jar
- -libraryjars C:\Users\danie\Downloads\APIs\jsoup-1.15.1.jar
- -libraryjars C:\Users\danie\Downloads\APIs\jsoup-1.15.1-javadoc.jar
- -libraryjars C:\Users\danie\Downloads\APIs\jsoup-1.15.1-sources.jar
- -libraryjars C:\Users\danie\Downloads\APIs\adventure-text-minimessage-4.11.0.jar
- -libraryjars C:\Users\danie\Downloads\APIs\spigot-1.8.8.jar
- -libraryjars C:\Users\danie\Downloads\APIs\lombok.jar
- #-libraryjars C:\Users\danie\Downloads\APIs\commons-error-3.0.0.jar
- -libraryjars C:\Users\danie\Downloads\APIs\bstats-base-3.0.0.jar
- -libraryjars C:\Users\danie\Downloads\APIs\bstats-bukkit-3.0.0.jar
- -libraryjars C:\Users\danie\Downloads\APIs\libby-core-1.1.5.jar
- -libraryjars C:\Users\danie\Downloads\APIs\libby-bukkit-1.1.5.jar
- #-libraryjars C:\Users\danie\Downloads\APIs\commons-error-3.0.0.jar
- -libraryjars C:\Users\danie\Downloads\APIs\commandflow-bukkit-0.5.2.jar
- -libraryjars C:\Users\danie\Downloads\APIs\commandflow-universal-0.5.3.jar
- Before Java 9, the runtime classes were packaged in a single jar file.
- #-libraryjars <java.home>/lib/rt.jar
- As of Java 9, the runtime classes are packaged in modular jmod files.
- -libraryjars <java.home>/jmods/java.base.jmod(!.jar;!module-info.class)
- -libraryjars <java.home>/jmods/java.sql.jmod (!.jar;!module-info.class)
- #-libraryjars <java.home>/jmods/…
- Write out an obfuscation mapping file, for de-obfuscating any stack traces
- later on, or for incremental obfuscation of extensions.
- -printmapping proguard.map
- Don’t print notes about reflection in GSON code, the Kotlin runtime, and
- our own optionally injected code.
- -dontnote kotlin.**
- -dontnote kotlinx.**
- -dontnote com.google.gson.**
- -dontnote proguard.configuration.ConfigurationLogger
- Preserve injected GSON utility classes and their members.
- -keep class net.shibacraft.simpleblockregen.** {;}
- -keep,allowobfuscation class proguard.optimize.gson._
- -keepclassmembers class proguard.optimize.gson._* {
- *;
- }
- Obfuscate class strings of injected GSON utility classes.
- -adaptclassstrings proguard.optimize.gson.**
- Allow methods with the same signature, except for the return type,
- to get the same obfuscation name.
- -overloadaggressively
- Put all obfuscated classes into the nameless root package.
- -repackageclasses ‘’
- Allow classes and class members to be made public.
- -allowaccessmodification
- The entry point: ProGuard and its main method.
- -keep public class proguard.ProGuard {
- public static void main(java.lang.String[]);
- }
- If you want to preserve the Ant task as well, you’ll have to specify the
- main ant.jar.
- #-libraryjars /usr/local/java/ant/lib/ant.jar
- #-adaptresourcefilecontents proguard/ant/task.properties
- #-keep,allowobfuscation class proguard.ant.*
- #-keepclassmembers public class proguard.ant.* {
- (org.apache.tools.ant.Project);
- public void set*(***);
- public void add*(***);
- #}
- If you want to preserve the Gradle task, you’ll have to specify the Gradle
- jars.
- #-libraryjars /usr/local/java/gradle-4.2.1/lib/plugins/gradle-plugins-4.2.1.jar
- #-libraryjars /usr/local/java/gradle-4.2.1/lib/gradle-base-services-4.2.1.jar
- #-libraryjars /usr/local/java/gradle-4.2.1/lib/gradle-core-4.2.1.jar
- #-libraryjars /usr/local/java/gradle-4.2.1/lib/groovy-all-2.4.12.jar
- #-keep public class proguard.gradle.* {
- public *;
- #}
- If you want to preserve the WTK obfuscation plug-in, you’ll have to specify
- the kenv.zip file.
- #-libraryjars /usr/local/java/wtk2.5.2/wtklib/kenv.zip
- #-keep public class proguard.wtk.ProGuardObfuscator
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement