Update Compile type with JavaCompile