Refactoring out javaProject from all the gradle build script.