diff --git a/build.gradle b/build.gradle index 4cbf456df..c87f437ea 100644 --- a/build.gradle +++ b/build.gradle @@ -128,19 +128,12 @@ tasks.withType(JacocoReport) { jacocoTestReport.dependsOn test checkstyle { - toolVersion = '7.0' + toolVersion = '8.7' + configFile = file("$projectDir/google-style.xml") showViolations = true -} - -dependencies { - checkstyle( 'com.puppycrawl.tools:checkstyle:7.0' ) -} - -tasks.withType(Checkstyle) { ignoreFailures = false - configFile = file("$projectDir/google-style.xml") - exclude '**/org/openqa/selenium/**' } +checkstyleMain.excludes = ['**/org/openqa/selenium/**'] task javadocJar(type: Jar) { classifier = 'javadoc' diff --git a/google-style.xml b/google-style.xml index 06e2c452c..2cfbd65b6 100755 --- a/google-style.xml +++ b/google-style.xml @@ -1,7 +1,7 @@ + "-//Puppy Crawl//DTD Check Configuration 1.3//EN" + "http://checkstyle.sourceforge.net/dtds/configuration_1_3.dtd">