Compare commits
No commits in common. "obfuscator-integration" and "main" have entirely different histories.
obfuscator
...
main
|
|
@ -80,11 +80,11 @@
|
|||
<goal>shade</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<shadedArtifactAttached>false</shadedArtifactAttached>
|
||||
<transformers>
|
||||
<transformer
|
||||
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
|
||||
<mainClass>de.hs_mannheim.informatik.mvn.Main</mainClass>
|
||||
<mainClass>
|
||||
de.hs_mannheim.informatik.mvn.Main</mainClass>
|
||||
</transformer>
|
||||
</transformers>
|
||||
</configuration>
|
||||
|
|
@ -92,47 +92,6 @@
|
|||
</executions>
|
||||
</plugin>
|
||||
|
||||
<!-- Code Obfuscation -->
|
||||
<plugin>
|
||||
<groupId>com.github.wvengen</groupId>
|
||||
<artifactId>proguard-maven-plugin</artifactId>
|
||||
<version>2.6.1</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>proguard</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
<configuration>
|
||||
<!-- WICHTIG: Das injar ist das vom Shade-Plugin erzeugte
|
||||
Jar -->
|
||||
<injar>${project.build.finalName}.jar</injar>
|
||||
<!-- Das outjar ist das finale, geschützte Jar -->
|
||||
<outjar>${project.build.finalName}-protected.jar</outjar>
|
||||
<obfuscate>true</obfuscate>
|
||||
<options>
|
||||
<option>
|
||||
-keep class !de.hs_mannheim.informatik.** { *; }
|
||||
|
||||
-keep public class de.hs_mannheim.informatik.mvn.Main {
|
||||
public static void main(java.lang.String[]);
|
||||
}
|
||||
|
||||
-keepattributes *Annotation*
|
||||
-keepattributes Signature
|
||||
</option>
|
||||
<!-- Da Shade alle Libs zusammenfügt, brauchst du oft
|
||||
mehr -dontwarn Regeln -->
|
||||
<option>-dontwarn **</option>
|
||||
</options>
|
||||
<libs>
|
||||
<lib>${java.home}/jmods</lib>
|
||||
</libs>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
<!-- Code coverage, cf.: target/site/jacoco -->
|
||||
<plugin>
|
||||
<groupId>org.jacoco</groupId>
|
||||
|
|
|
|||
Loading…
Reference in New Issue