12 Aralık 2021 Pazar

proguard plugin

Örnek
Şöyle yaparız
<plugin>       
  <groupId>com.github.wvengen</groupId>
  <artifactId>proguard-maven-plugin</artifactId>
  <version>2.3.1</version>
  <executions>
    <execution>             
      <phase>package</phase>             
      <goals>                
        <goal>proguard</goal>             
      </goals>          
    </execution>       
  </executions>       
  <configuration>          
    <proguardVersion>6.0.3</proguardVersion>
    <injar>${project.build.finalName}.jar</injar>
    <outjar>${project.build.finalName}.jar</outjar>
    <obfuscate>true</obfuscate>
    <proguardInclude>${project.basedir}/proguard.cfg</proguardInclude>
    <libs>             
      <lib>${java.home}/lib/rt.jar</lib>
      <lib>${java.home}/lib/jce.jar</lib>
      <lib>${java.home}/lib/jsse.jar</lib>          
    </libs>       
  </configuration>       
  <dependencies>          
    <dependency>             
      <groupId>net.sf.proguard</groupId>             
      <artifactId>proguard-base</artifactId>
      <version>6.0.3</version>          
    </dependency>       
  </dependencies>
</plugin>
proguard.cfg dosyasında proguard kuralları vardır.

Hiç yorum yok:

Yorum Gönder

Local Snapshot Kullanmak

Örnek Şöyle yaparız <repository> <id>snapshot-repository</id> <name>Maven2 Snapshot Repository</name> &l...