Skip to content

Commit

Permalink
upgrade proguard
Browse files Browse the repository at this point in the history
  • Loading branch information
sebthom committed Feb 26, 2024
1 parent 66cd2bf commit d7d13ec
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@
<plugin>
<groupId>com.github.wvengen</groupId>
<artifactId>proguard-maven-plugin</artifactId>
<version>2.6.0</version>
<version>2.6.1</version>
<executions>
<execution>
<id>shrink-fat-jar</id>
Expand Down Expand Up @@ -205,6 +205,8 @@
<option>-dontnote **</option>
<option>-ignorewarnings</option>

<option>-optimizations !field/generalization/class</option> <!-- workaround for Exception in thread "main" java.lang.IllegalAccessError: failed to access class X from Y (X and Y are in unnamed module of loader 'app') -->

<option>-keep public class ${mainClass} { public static void main(java.lang.String[]); }</option>

<option>-keepattributes Exceptions,*Annotation*,InnerClasses,MethodParameters,Signature,SourceFile,LineNumberTable</option>
Expand Down Expand Up @@ -248,6 +250,13 @@
</configuration>
<dependencies>
<dependency>
<!-- https://github.com/Guardsquare/proguard -->
<groupId>com.guardsquare</groupId>
<artifactId>proguard-base</artifactId>
<version>7.4.2</version>
</dependency>
<dependency>
<!-- https://github.com/Guardsquare/proguard-core -->
<groupId>com.guardsquare</groupId>
<artifactId>proguard-core</artifactId>
<version>${proguard.version}</version>
Expand Down

0 comments on commit d7d13ec

Please sign in to comment.