From f3404f4fdd34c712a9cf7efc8d325da3bebbb8f7 Mon Sep 17 00:00:00 2001 From: Valery Yatsynovich Date: Tue, 9 Jan 2018 17:55:14 +0300 Subject: [PATCH 1/2] Upgrade to Checkstyle 8.7 --- build.gradle | 13 +++---------- google-style.xml | 33 +++++++++++++++------------------ 2 files changed, 18 insertions(+), 28 deletions(-) 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">