Skip to content

Latest commit

 

History

History

processing

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

processing

This example demonstrates how to use post-processing to obfuscate jar files that use non-conformant folders (such as BOOT-INF).

This example will use a Spring Boot starter application.

Basically, the process runs through the following steps:

  1. compile and package the Spring Boot Application
  2. extract classes from BOOT_INF
  3. use a standard obfuscation scheme which will leave libraries unobfuscated
  4. package the classes from the obfuscated JAR back into the JAR packaged in step 1

The steps are illustrated with command line instructions below.

Obfuscating with Maven

# package the spring boot application with obfuscated application classes
mvn clean package

Obfuscating with Gradle

gradle clean build

Obfuscating with Ant

ant clean obfuscate