Files
proguard/examples/spring-boot
niccolo.piazzesi 6776d6a3aa Prepare for 7.8.2 release
Summary: Update all relevant docs to prepare for release containing D56358

Reviewers: dominik.huber, thomas.vochten

Reviewed By: dominik.huber, thomas.vochten

Differential Revision: https://phabricator.guardsquare.com/D57357
2025-12-03 12:32:49 +01:00
..
2020-11-13 18:18:12 +01:00
2020-11-13 18:18:12 +01:00
2025-12-03 12:32:49 +01: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