diff --git a/build.gradle b/build.gradle index d939ab7..0d6c91b 100644 --- a/build.gradle +++ b/build.gradle @@ -1,4 +1,5 @@ plugins { + id 'checkstyle' id 'java' id 'jacoco' id 'maven-publish' @@ -148,6 +149,18 @@ tasks.withType(SpotBugsTask) { excludeFilter = file("$projectDir/config/spotbugs/excludeFilter.xml") } +tasks.withType(Checkstyle) { + reports { + xml.enabled false + html.enabled true + //html.stylesheet resources.text.fromFile('config/xsl/checkstyle-custom.xsl') + } +} + +checkstyle { + toolVersion "8.18" +} + compileJava { options.compilerArgs.add('-proc:none') }