From 7ac435e9240d14d6f264bdba205adfd6394005f3 Mon Sep 17 00:00:00 2001 From: zentol Date: Wed, 9 May 2018 13:20:41 +0200 Subject: [PATCH 1/2] [FLINK-9323][build] Properly organize checkstyle-plugin configuration --- flink-core/pom.xml | 23 +---------------- flink-optimizer/pom.xml | 23 +---------------- flink-runtime/pom.xml | 23 +---------------- pom.xml | 55 ++++++++++++++++++++++------------------- 4 files changed, 33 insertions(+), 91 deletions(-) diff --git a/flink-core/pom.xml b/flink-core/pom.xml index f860c20a047e0..7cb5992ab6c78 100644 --- a/flink-core/pom.xml +++ b/flink-core/pom.xml @@ -121,30 +121,9 @@ under the License. org.apache.maven.plugins maven-checkstyle-plugin - 2.17 - - - com.puppycrawl.tools - checkstyle - 8.4 - - - - - validate - validate - - check - - - - /tools/maven/checkstyle.xml - /tools/maven/suppressions-core.xml - true - true - true + /tools/maven/suppressions-runtime.xml diff --git a/flink-optimizer/pom.xml b/flink-optimizer/pom.xml index 903621a537c49..357ac84525cbb 100644 --- a/flink-optimizer/pom.xml +++ b/flink-optimizer/pom.xml @@ -80,30 +80,9 @@ under the License. org.apache.maven.plugins maven-checkstyle-plugin - 2.17 - - - com.puppycrawl.tools - checkstyle - 8.4 - - - - - validate - validate - - check - - - - /tools/maven/checkstyle.xml - /tools/maven/suppressions-optimizer.xml - true - true - true + /tools/maven/suppressions-runtime.xml diff --git a/flink-runtime/pom.xml b/flink-runtime/pom.xml index 5ed096a6fcddd..f195bd57bc5f7 100644 --- a/flink-runtime/pom.xml +++ b/flink-runtime/pom.xml @@ -334,30 +334,9 @@ under the License. org.apache.maven.plugins maven-checkstyle-plugin - 2.17 - - - com.puppycrawl.tools - checkstyle - 8.4 - - - - - validate - validate - - check - - - - /tools/maven/checkstyle.xml - /tools/maven/suppressions-runtime.xml - true - true - true + /tools/maven/suppressions-runtime.xml diff --git a/pom.xml b/pom.xml index c6a25ad595c09..e157edda74647 100644 --- a/pom.xml +++ b/pom.xml @@ -1164,31 +1164,6 @@ under the License. org.apache.maven.plugins maven-checkstyle-plugin - 2.17 - - - com.puppycrawl.tools - checkstyle - - 8.4 - - - - - validate - validate - - check - - - - - /tools/maven/suppressions.xml - true - /tools/maven/checkstyle.xml - true - true - @@ -1393,6 +1368,36 @@ under the License. + + org.apache.maven.plugins + maven-checkstyle-plugin + 2.17 + + + com.puppycrawl.tools + checkstyle + + 8.4 + + + + + validate + validate + + check + + + + + /tools/maven/suppressions.xml + true + /tools/maven/checkstyle.xml + true + true + + + org.apache.maven.plugins maven-javadoc-plugin From 78d96cbc6097c642ebac9e6826f3e749f6d955ae Mon Sep 17 00:00:00 2001 From: zentol Date: Wed, 9 May 2018 14:41:53 +0200 Subject: [PATCH 2/2] fix suppression file paths --- flink-core/pom.xml | 2 +- flink-optimizer/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/flink-core/pom.xml b/flink-core/pom.xml index 7cb5992ab6c78..efd7b12152498 100644 --- a/flink-core/pom.xml +++ b/flink-core/pom.xml @@ -123,7 +123,7 @@ under the License. maven-checkstyle-plugin - /tools/maven/suppressions-runtime.xml + /tools/maven/suppressions-core.xml diff --git a/flink-optimizer/pom.xml b/flink-optimizer/pom.xml index 357ac84525cbb..d5b6bfb00b158 100644 --- a/flink-optimizer/pom.xml +++ b/flink-optimizer/pom.xml @@ -82,7 +82,7 @@ under the License. maven-checkstyle-plugin - /tools/maven/suppressions-runtime.xml + /tools/maven/suppressions-optimizer.xml