Advertisement
Guest User

Untitled

a guest
Jul 20th, 2022
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.52 KB | None | 0 0
  1. #This ProGuard configuration file illustrates how to process ProGuard itself.
  2. #Configuration files for typical applications will be very similar.
  3. #Usage:
  4. #java -jar proguard.jar @proguard.pro
  5.  
  6. #-dontwarn
  7. -verbose
  8.  
  9. Specify the input jars, output jars, and library jars.
  10. -injars C:\Users\danie\IdeaProjects\SimpleBlockRegen_ProGuard\build\SimpleBlockRegen-0.0.2-SNAPSHOT.jar
  11. -outjars C:\Users\danie\IdeaProjects\SimpleBlockRegen_ProGuard\build\libs\SimpleBlockRegen_proguard.jar
  12.  
  13. -libraryjars C:\Users\danie\Downloads\APIs\simplixstorage-3.2.4.jar
  14. -libraryjars C:\Users\danie\Downloads\APIs\paper.jar
  15. -libraryjars C:\Users\danie\Downloads\APIs\adventure-api-4.11.0.jar
  16. -libraryjars C:\Users\danie\Downloads\APIs\worldguard-bukkit-7.0.7-dist.jar
  17. -libraryjars C:\Users\danie\Downloads\APIs\worldedit-bukkit-7.2.10.jar
  18. -libraryjars C:\Users\danie\Downloads\APIs\MMOItems-6.7.2.jar
  19. -libraryjars C:\Users\danie\Downloads\APIs\MythicLib-dist-1.3.1.jar
  20. -libraryjars C:\Users\danie\Downloads\APIs\protectionstones-2.8.4.jar
  21. -libraryjars C:\Users\danie\Downloads\APIs\placeholderapi-2.11.1.jar
  22. -libraryjars C:\Users\danie\Downloads\APIs\jsoup-1.15.1.jar
  23. -libraryjars C:\Users\danie\Downloads\APIs\jsoup-1.15.1-javadoc.jar
  24. -libraryjars C:\Users\danie\Downloads\APIs\jsoup-1.15.1-sources.jar
  25. -libraryjars C:\Users\danie\Downloads\APIs\adventure-text-minimessage-4.11.0.jar
  26. -libraryjars C:\Users\danie\Downloads\APIs\spigot-1.8.8.jar
  27. -libraryjars C:\Users\danie\Downloads\APIs\lombok.jar
  28. #-libraryjars C:\Users\danie\Downloads\APIs\commons-error-3.0.0.jar
  29. -libraryjars C:\Users\danie\Downloads\APIs\bstats-base-3.0.0.jar
  30. -libraryjars C:\Users\danie\Downloads\APIs\bstats-bukkit-3.0.0.jar
  31. -libraryjars C:\Users\danie\Downloads\APIs\libby-core-1.1.5.jar
  32. -libraryjars C:\Users\danie\Downloads\APIs\libby-bukkit-1.1.5.jar
  33. #-libraryjars C:\Users\danie\Downloads\APIs\commons-error-3.0.0.jar
  34. -libraryjars C:\Users\danie\Downloads\APIs\commandflow-bukkit-0.5.2.jar
  35. -libraryjars C:\Users\danie\Downloads\APIs\commandflow-universal-0.5.3.jar
  36.  
  37. Before Java 9, the runtime classes were packaged in a single jar file.
  38. #-libraryjars <java.home>/lib/rt.jar
  39.  
  40. As of Java 9, the runtime classes are packaged in modular jmod files.
  41. -libraryjars <java.home>/jmods/java.base.jmod(!.jar;!module-info.class)
  42. -libraryjars <java.home>/jmods/java.sql.jmod (!.jar;!module-info.class)
  43. #-libraryjars <java.home>/jmods/…
  44.  
  45. Write out an obfuscation mapping file, for de-obfuscating any stack traces
  46. later on, or for incremental obfuscation of extensions.
  47. -printmapping proguard.map
  48.  
  49. Don’t print notes about reflection in GSON code, the Kotlin runtime, and
  50. our own optionally injected code.
  51. -dontnote kotlin.**
  52. -dontnote kotlinx.**
  53. -dontnote com.google.gson.**
  54. -dontnote proguard.configuration.ConfigurationLogger
  55.  
  56. Preserve injected GSON utility classes and their members.
  57. -keep class net.shibacraft.simpleblockregen.** {;}
  58. -keep,allowobfuscation class proguard.optimize.gson._
  59. -keepclassmembers class proguard.optimize.gson._* {
  60. *;
  61. }
  62.  
  63. Obfuscate class strings of injected GSON utility classes.
  64. -adaptclassstrings proguard.optimize.gson.**
  65.  
  66. Allow methods with the same signature, except for the return type,
  67. to get the same obfuscation name.
  68. -overloadaggressively
  69.  
  70. Put all obfuscated classes into the nameless root package.
  71. -repackageclasses ‘’
  72.  
  73. Allow classes and class members to be made public.
  74. -allowaccessmodification
  75.  
  76. The entry point: ProGuard and its main method.
  77. -keep public class proguard.ProGuard {
  78. public static void main(java.lang.String[]);
  79. }
  80.  
  81. If you want to preserve the Ant task as well, you’ll have to specify the
  82. main ant.jar.
  83. #-libraryjars /usr/local/java/ant/lib/ant.jar
  84. #-adaptresourcefilecontents proguard/ant/task.properties
  85.  
  86. #-keep,allowobfuscation class proguard.ant.*
  87. #-keepclassmembers public class proguard.ant.* {
  88.  
  89. (org.apache.tools.ant.Project);
  90. public void set*(***);
  91. public void add*(***);
  92. #}
  93.  
  94. If you want to preserve the Gradle task, you’ll have to specify the Gradle
  95. jars.
  96. #-libraryjars /usr/local/java/gradle-4.2.1/lib/plugins/gradle-plugins-4.2.1.jar
  97. #-libraryjars /usr/local/java/gradle-4.2.1/lib/gradle-base-services-4.2.1.jar
  98. #-libraryjars /usr/local/java/gradle-4.2.1/lib/gradle-core-4.2.1.jar
  99. #-libraryjars /usr/local/java/gradle-4.2.1/lib/groovy-all-2.4.12.jar
  100.  
  101. #-keep public class proguard.gradle.* {
  102.  
  103. public *;
  104. #}
  105.  
  106. If you want to preserve the WTK obfuscation plug-in, you’ll have to specify
  107. the kenv.zip file.
  108. #-libraryjars /usr/local/java/wtk2.5.2/wtklib/kenv.zip
  109. #-keep public class proguard.wtk.ProGuardObfuscator
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement