Replace initial gradle build with compileJava