From 2274ac5214ea0aa342ff43ac901ff54c27ca36e2 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Mon, 4 Jun 2018 17:25:19 -0700 Subject: [PATCH] Move spring-javaformat plugins to root POM Relocate spring-javaformat plugins to the root of the project. Closes gh-13306 --- .../.eclipse => .eclipse}/eclipse.properties | 0 pom.xml | 58 ++++++++++++++++++- .../spring-boot-parent/pom.xml | 53 ----------------- spring-boot-samples/pom.xml | 49 ---------------- .../checkstyle/checkstyle-header.txt | 0 .../checkstyle/checkstyle-suppressions.xml | 0 .../src => src}/checkstyle/checkstyle.xml | 0 .../src => src}/checkstyle/import-control.xml | 0 8 files changed, 57 insertions(+), 103 deletions(-) rename {spring-boot-project/spring-boot-dependencies/.eclipse => .eclipse}/eclipse.properties (100%) rename {spring-boot-project/spring-boot-parent/src => src}/checkstyle/checkstyle-header.txt (100%) rename {spring-boot-project/spring-boot-parent/src => src}/checkstyle/checkstyle-suppressions.xml (100%) rename {spring-boot-project/spring-boot-parent/src => src}/checkstyle/checkstyle.xml (100%) rename {spring-boot-project/spring-boot-parent/src => src}/checkstyle/import-control.xml (100%) diff --git a/spring-boot-project/spring-boot-dependencies/.eclipse/eclipse.properties b/.eclipse/eclipse.properties similarity index 100% rename from spring-boot-project/spring-boot-dependencies/.eclipse/eclipse.properties rename to .eclipse/eclipse.properties diff --git a/pom.xml b/pom.xml index 0cdb824474..811c04c45d 100644 --- a/pom.xml +++ b/pom.xml @@ -1,5 +1,6 @@ - 4.0.0 org.springframework.boot @@ -20,6 +21,61 @@ true + + 0.0.2 + + + + + org.apache.maven.plugins + maven-checkstyle-plugin + 3.0.0 + + + com.puppycrawl.tools + checkstyle + 8.8 + + + io.spring.javaformat + spring-javaformat-checkstyle + ${spring-javaformat.version} + + + + + checkstyle-validation + validate + + ${disable.checks} + src/checkstyle/checkstyle.xml + src/checkstyle/checkstyle-suppressions.xml + true + + + check + + + + + + io.spring.javaformat + spring-javaformat-maven-plugin + ${spring-javaformat.version} + + + validate + + ${disable.checks} + + + validate + + + + + + spring-boot-project diff --git a/spring-boot-project/spring-boot-parent/pom.xml b/spring-boot-project/spring-boot-parent/pom.xml index 78946aedbb..318033ff1e 100644 --- a/spring-boot-project/spring-boot-parent/pom.xml +++ b/spring-boot-project/spring-boot-parent/pom.xml @@ -26,7 +26,6 @@ 1.0.2.v20150114 3.1.1 1.0-groovy-2.4 - 0.0.2 http://github.com/spring-projects/spring-boot @@ -304,23 +303,6 @@ asciidoctor-maven-plugin 1.5.5 - - org.apache.maven.plugins - maven-checkstyle-plugin - 3.0.0 - - - com.puppycrawl.tools - checkstyle - 8.8 - - - io.spring.javaformat - spring-javaformat-checkstyle - ${spring-javaformat.version} - - - org.apache.maven.plugins maven-failsafe-plugin @@ -574,41 +556,6 @@ - - io.spring.javaformat - spring-javaformat-maven-plugin - ${spring-javaformat.version} - - - validate - - ${disable.checks} - - - validate - - - - - - org.apache.maven.plugins - maven-checkstyle-plugin - - - checkstyle-validation - validate - - ${disable.checks} - src/checkstyle/checkstyle.xml - src/checkstyle/checkstyle-suppressions.xml - true - - - check - - - - org.apache.maven.plugins maven-compiler-plugin diff --git a/spring-boot-samples/pom.xml b/spring-boot-samples/pom.xml index 054c146ddd..2c99390f32 100644 --- a/spring-boot-samples/pom.xml +++ b/spring-boot-samples/pom.xml @@ -15,7 +15,6 @@ ${basedir}/.. 1.8 - 0.0.2 false @@ -176,54 +175,6 @@ - - io.spring.javaformat - spring-javaformat-maven-plugin - ${spring-javaformat.version} - - - validate - - ${disable.checks} - - - validate - - - - - - org.apache.maven.plugins - maven-checkstyle-plugin - 3.0.0 - - - com.puppycrawl.tools - checkstyle - 8.8 - - - io.spring.javaformat - spring-javaformat-checkstyle - ${spring-javaformat.version} - - - - - checkstyle-validation - validate - - ${disable.checks} - ../spring-boot-parent/src/checkstyle/checkstyle.xml - ../spring-boot-parent/src/checkstyle/checkstyle-suppressions.xml - true - - - check - - - - org.apache.maven.plugins maven-surefire-plugin diff --git a/spring-boot-project/spring-boot-parent/src/checkstyle/checkstyle-header.txt b/src/checkstyle/checkstyle-header.txt similarity index 100% rename from spring-boot-project/spring-boot-parent/src/checkstyle/checkstyle-header.txt rename to src/checkstyle/checkstyle-header.txt diff --git a/spring-boot-project/spring-boot-parent/src/checkstyle/checkstyle-suppressions.xml b/src/checkstyle/checkstyle-suppressions.xml similarity index 100% rename from spring-boot-project/spring-boot-parent/src/checkstyle/checkstyle-suppressions.xml rename to src/checkstyle/checkstyle-suppressions.xml diff --git a/spring-boot-project/spring-boot-parent/src/checkstyle/checkstyle.xml b/src/checkstyle/checkstyle.xml similarity index 100% rename from spring-boot-project/spring-boot-parent/src/checkstyle/checkstyle.xml rename to src/checkstyle/checkstyle.xml diff --git a/spring-boot-project/spring-boot-parent/src/checkstyle/import-control.xml b/src/checkstyle/import-control.xml similarity index 100% rename from spring-boot-project/spring-boot-parent/src/checkstyle/import-control.xml rename to src/checkstyle/import-control.xml