Switched to JavaCompile task instead of deprecated Compile
Added test checkstyle support