I have a (very very large) Spring Boot application. This is a large legacy application. Assume that I have dozens of Controllers and routes.
I want to do limited test deployments. Also, for licensing reasons, I want to package and deploy 5 controllers and remove the rest (not just disable, but remove).
Is this possible to do using some Gradle/Spring magic ? Can I select just 5 controllers to be packaged as part of the jar and the rest 30 should not even be present in the output ? I would not like to ship the code for the other controllers.
I can force each controller to be in a different package. So I can say that I want package a, b,c to be in the JAR file...but remove d,e,f. Or some other way ?