From e9cae985e082f6728c9f0c605264fdef0ec626b5 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Thu, 8 Aug 2019 09:26:01 -0700 Subject: [PATCH 1/3] Switch to google_checks.xml for maven-checkstyle-plugin --- checkstyle.xml | 318 ----------------- pom.xml | 2 +- samples/checkstyle.xml | 336 ------------------ .../dailymotion-simple-cmdline-sample/pom.xml | 2 +- 4 files changed, 2 insertions(+), 656 deletions(-) delete mode 100644 checkstyle.xml delete mode 100644 samples/checkstyle.xml diff --git a/checkstyle.xml b/checkstyle.xml deleted file mode 100644 index 9d2f4bbe9..000000000 --- a/checkstyle.xml +++ /dev/null @@ -1,318 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/pom.xml b/pom.xml index 3f296b7b7..32e6b2f32 100644 --- a/pom.xml +++ b/pom.xml @@ -452,7 +452,7 @@ org.apache.maven.plugins maven-checkstyle-plugin - ${project.root-directory}/checkstyle.xml + google_checks.xml true ${project.root-directory}/checkstyle-suppressions.xml diff --git a/samples/checkstyle.xml b/samples/checkstyle.xml deleted file mode 100644 index 66cd0c954..000000000 --- a/samples/checkstyle.xml +++ /dev/null @@ -1,336 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/samples/dailymotion-simple-cmdline-sample/pom.xml b/samples/dailymotion-simple-cmdline-sample/pom.xml index 8c5ca35fb..899747032 100644 --- a/samples/dailymotion-simple-cmdline-sample/pom.xml +++ b/samples/dailymotion-simple-cmdline-sample/pom.xml @@ -37,7 +37,7 @@ maven-checkstyle-plugin 3.0.0 - ../../checkstyle.xml + google_checks.xml true false ../../checkstyle-suppressions.xml From cc2e71688fdff96decfd47fb8b956770e3bd96c0 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Thu, 8 Aug 2019 10:04:32 -0700 Subject: [PATCH 2/3] Update maven-checkstyle-plugin to 3.1.0 --- pom.xml | 2 +- samples/dailymotion-simple-cmdline-sample/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 32e6b2f32..85fc7c46f 100644 --- a/pom.xml +++ b/pom.xml @@ -335,7 +335,7 @@ org.apache.maven.plugins maven-checkstyle-plugin - 3.0.0 + 3.1.0 org.codehaus.mojo diff --git a/samples/dailymotion-simple-cmdline-sample/pom.xml b/samples/dailymotion-simple-cmdline-sample/pom.xml index 899747032..62606c953 100644 --- a/samples/dailymotion-simple-cmdline-sample/pom.xml +++ b/samples/dailymotion-simple-cmdline-sample/pom.xml @@ -35,7 +35,7 @@ maven-checkstyle-plugin - 3.0.0 + 3.1.0 google_checks.xml true From 3ae2c3bfca309d82017d23dee68f8f5a0c02d0af Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Thu, 8 Aug 2019 10:19:45 -0700 Subject: [PATCH 3/3] Only run checkstyle on Java 8+ --- pom.xml | 51 ++++++++++++------ .../dailymotion-simple-cmdline-sample/pom.xml | 54 +++++++++++++------ 2 files changed, 72 insertions(+), 33 deletions(-) diff --git a/pom.xml b/pom.xml index 85fc7c46f..783da170d 100644 --- a/pom.xml +++ b/pom.xml @@ -448,22 +448,6 @@ - - org.apache.maven.plugins - maven-checkstyle-plugin - - google_checks.xml - true - ${project.root-directory}/checkstyle-suppressions.xml - - - - - check - - - - org.codehaus.mojo findbugs-maven-plugin @@ -634,5 +618,40 @@ . + + + + checkstyle-tests + + [1.8,) + + + + + org.apache.maven.plugins + maven-checkstyle-plugin + + + com.puppycrawl.tools + checkstyle + 8.23 + + + + google_checks.xml + true + ${project.root-directory}/checkstyle-suppressions.xml + + + + + check + + + + + + + diff --git a/samples/dailymotion-simple-cmdline-sample/pom.xml b/samples/dailymotion-simple-cmdline-sample/pom.xml index 62606c953..711c18303 100644 --- a/samples/dailymotion-simple-cmdline-sample/pom.xml +++ b/samples/dailymotion-simple-cmdline-sample/pom.xml @@ -33,23 +33,6 @@ - - maven-checkstyle-plugin - 3.1.0 - - google_checks.xml - true - false - ../../checkstyle-suppressions.xml - - - - - check - - - - org.codehaus.mojo findbugs-maven-plugin @@ -95,4 +78,41 @@ UTF-8 + + + + + checkstyle-tests + + [1.8,) + + + + + org.apache.maven.plugins + maven-checkstyle-plugin + + + com.puppycrawl.tools + checkstyle + 8.23 + + + + google_checks.xml + true + ../../checkstyle-suppressions.xml + + + + + check + + + + + + + +