Clean up build process for distribution version.
Gradle build filters properly for war and its dependent jettyRunWar.