Files
proguard/examples/spring-boot
James Hamilton aa43b9dc21 Update versions for 7.5 (#404)
Updates ProGuardCORE + other required dependencies for Kotlin 2 + Java 22; including running tests with Java 22.
2024-05-23 14:01:48 +02:00
..
2020-11-13 18:18:12 +01:00
2020-11-13 18:18:12 +01:00
2024-05-23 14:01:48 +02:00
2023-10-12 12:50:05 +02:00
2023-10-12 12:50:05 +02:00
2020-11-13 18:18:12 +01:00
2020-11-13 18:18:12 +01:00

Demo Application demonstrating ProGuard applied to a Spring Boot application

Building

./gradlew clean proguard --info

Spring Boot applications contain a BOOT-INF folder which contains the application class files and library jars. We must first extract the program classes, then apply ProGuard to them and finally repackage the application.

Executing

The unobfuscated application will be located at build/libs/demo-0.0.1.jar and the obfuscated application will be located at build/libs/demo-0.0.1-obfuscated.jar.

They can be executed as follows:

java -jar build/libs/demo-0.0.1.jar

or

java -jar build/libs/demo-0.0.1-obfuscated.jar