Using the spring-boot-gradle plugin I declared the spring-boot-devtools jar as developmentOnly.
According to the documentation developmentOnly jars are excluded from executable jar and war, but I need to deploy plain war to production and not the executable war. The plain war has developmentOnly (devtools) dependencies in it.
How can I exclude developmentOnly jars from plain war?