From 3d4369f6cb2219b2aaa41505540657ca6668c854 Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Tue, 29 Aug 2017 09:36:54 +0100 Subject: [PATCH] Add checkstyle plugin configuration Not enabled by default because many projects do not use it yet. The plan is to roll it out and then remove the google import detector. Fixes gh-58 --- pom.xml | 98 ++++++++++++------- spring-cloud-build-tools/pom.xml | 9 +- .../src/main/resources/checkstyle.xml | 5 +- 3 files changed, 76 insertions(+), 36 deletions(-) diff --git a/pom.xml b/pom.xml index 9dfee848..f4b89169 100644 --- a/pom.xml +++ b/pom.xml @@ -19,11 +19,13 @@ @ UTF-8 UTF-8 + 2.17 ${java.version} ${java.version} ${basedir} ${project.artifactId} 1.5.7.BUILD-SNAPSHOT + 1.3.5.BUILD-SNAPSHOT jacoco @@ -36,7 +38,7 @@ org.springframework.cloud spring-cloud-build-dependencies - 1.3.5.BUILD-SNAPSHOT + ${spring-cloud-build.version} pom import @@ -247,6 +249,33 @@ limitations under the License. false + + org.apache.maven.plugins + maven-checkstyle-plugin + ${checkstyle.version} + + + org.springframework.cloud + spring-cloud-build-tools + ${spring-cloud-build.version} + + + + checkstyle.xml + LICENSE.txt + true + true + + + + validate + validate + + check + + + + pl.project13.maven git-commit-id-plugin @@ -508,6 +537,40 @@ limitations under the License. + java7 + + + .jdk8 + + + + + + org.codehaus.mojo + animal-sniffer-maven-plugin + 1.14 + + + org.codehaus.mojo.signature + java17 + 1.0 + + + + + enforce-java-7 + test + + check + + + + + + + + + imports @@ -555,39 +618,6 @@ limitations under the License. - - java7 - - - .jdk8 - - - - - - org.codehaus.mojo - animal-sniffer-maven-plugin - 1.14 - - - org.codehaus.mojo.signature - java17 - 1.0 - - - - - enforce-java-7 - test - - check - - - - - - - docs diff --git a/spring-cloud-build-tools/pom.xml b/spring-cloud-build-tools/pom.xml index ce8b35b0..a5c1d950 100644 --- a/spring-cloud-build-tools/pom.xml +++ b/spring-cloud-build-tools/pom.xml @@ -13,5 +13,12 @@ spring-cloud-build 1.3.5.BUILD-SNAPSHOT - + + + com.puppycrawl.tools + checkstyle + 7.6 + + + diff --git a/spring-cloud-build-tools/src/main/resources/checkstyle.xml b/spring-cloud-build-tools/src/main/resources/checkstyle.xml index 1ab895ff..5a0b022c 100644 --- a/spring-cloud-build-tools/src/main/resources/checkstyle.xml +++ b/spring-cloud-build-tools/src/main/resources/checkstyle.xml @@ -16,5 +16,8 @@ + + + - \ No newline at end of file +