From d76e49b7956f17f9f04c74c3713b9d9226ae35c9 Mon Sep 17 00:00:00 2001 From: Marius Bogoevici Date: Wed, 17 Aug 2016 11:08:55 -0400 Subject: [PATCH] Add `spring-cloud-stream-tools` module Fixes #618 - Store checkstyle rules in spring-cloud-stream-tools module --- pom.xml | 15 +++++++++++---- spring-cloud-stream-dependencies/pom.xml | 5 +++++ spring-cloud-stream-tools/pom.xml | 19 +++++++++++++++++++ .../src/main/resources}/checkstyle-header.txt | 0 .../src/main/resources}/checkstyle.xml | 2 +- 5 files changed, 36 insertions(+), 5 deletions(-) create mode 100644 spring-cloud-stream-tools/pom.xml rename {src/checkstyle => spring-cloud-stream-tools/src/main/resources}/checkstyle-header.txt (100%) rename {src/checkstyle => spring-cloud-stream-tools/src/main/resources}/checkstyle.xml (98%) diff --git a/pom.xml b/pom.xml index 23ae2bc86..db5c59553 100644 --- a/pom.xml +++ b/pom.xml @@ -46,6 +46,7 @@ spring-cloud-stream-reactive spring-cloud-stream-schema spring-cloud-stream-schema-server + spring-cloud-stream-tools @@ -63,7 +64,7 @@ com.puppycrawl.tools checkstyle - 6.17 + 7.1 @@ -87,14 +88,20 @@ org.apache.maven.plugins maven-checkstyle-plugin + + + org.springframework.cloud + spring-cloud-stream-tools + ${project.version} + + checkstyle-validation validate - src/checkstyle/checkstyle.xml - src/checkstyle/checkstyle-header.txt - checkstyle.build.directory=${project.build.directory} + checkstyle.xml + checkstyle-header.txt UTF-8 true true diff --git a/spring-cloud-stream-dependencies/pom.xml b/spring-cloud-stream-dependencies/pom.xml index 09dc98076..f6a37fbe9 100644 --- a/spring-cloud-stream-dependencies/pom.xml +++ b/spring-cloud-stream-dependencies/pom.xml @@ -26,6 +26,11 @@ spring-cloud-stream 1.1.0.BUILD-SNAPSHOT + + org.springframework.cloud + spring-cloud-stream-build-tools + 1.1.0.BUILD-SNAPSHOT + org.springframework.cloud spring-cloud-stream-codec diff --git a/spring-cloud-stream-tools/pom.xml b/spring-cloud-stream-tools/pom.xml new file mode 100644 index 000000000..63d8b4632 --- /dev/null +++ b/spring-cloud-stream-tools/pom.xml @@ -0,0 +1,19 @@ + + + 4.0.0 + + org.springframework.cloud + spring-cloud-build + 1.1.2.BUILD-SNAPSHOT + + + + spring-cloud-stream-tools + 1.1.0.BUILD-SNAPSHOT + spring-cloud-stream-build-tools + Spring Cloud Stream Build Tools + + + \ No newline at end of file diff --git a/src/checkstyle/checkstyle-header.txt b/spring-cloud-stream-tools/src/main/resources/checkstyle-header.txt similarity index 100% rename from src/checkstyle/checkstyle-header.txt rename to spring-cloud-stream-tools/src/main/resources/checkstyle-header.txt diff --git a/src/checkstyle/checkstyle.xml b/spring-cloud-stream-tools/src/main/resources/checkstyle.xml similarity index 98% rename from src/checkstyle/checkstyle.xml rename to spring-cloud-stream-tools/src/main/resources/checkstyle.xml index c4baccbb4..2d7db87b2 100644 --- a/src/checkstyle/checkstyle.xml +++ b/spring-cloud-stream-tools/src/main/resources/checkstyle.xml @@ -5,7 +5,7 @@ - +