I’m trying to use ProGuard to obfuscate a Java Spring Boot project in order to make it harder to reverse engineer.
Java version: 21
Spring Boot version: 3.3.0
Packaging: WAR
Server: Tomcat 10
The problem is that after building the WAR with ProGuard and deploying it to Tomcat, the application fails to start. Tomcat shows no Spring Boot logs at all, so it seems like the app isn’t even initializing.
Without obfuscation, the WAR works fine on Tomcat. With obfuscation, it silently fails.
What could be causing Spring Boot to fail after ProGuard obfuscation, and how can I configure ProGuard so the WAR runs correctly on Tomcat?