mirror of
https://github.com/Guardsquare/proguard.git
synced 2026-03-13 09:50:34 +08:00
* Add cache relocatability to proguard task. This allows the Proguard Task to take advantage of the Gradle Build cache and re-use outputs from other builds. This also adds a simple test for cache relocateability * Address review comments * Use regex to replace build.gradle file * Use jar in spring boot sample.
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