From 51e71610561e09a4006017df613851617a667b71 Mon Sep 17 00:00:00 2001 From: Artem Bilan Date: Wed, 9 Aug 2017 14:14:36 -0400 Subject: [PATCH] Use Checkstyle configs from src directly Since we rely on the Checkstyle configs in the `spring-cloud-stream-tools` module, we really need its artifact if we would like to use it as a dependency for the `maven-checkstyle-plugin`. But at the same time it is possible only if we run `package` phase. During `compile/test` phase we don't have artifact yet and end up with the error that no property set for Checkstyle. * Use Checkstyle config files directly for the `maven-checkstyle-plugin` properties. This way we don't need any artifact to build in advance --- pom.xml | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/pom.xml b/pom.xml index c3bda6de3..03b739ea5 100644 --- a/pom.xml +++ b/pom.xml @@ -159,21 +159,14 @@ org.apache.maven.plugins maven-checkstyle-plugin - - - org.springframework.cloud - spring-cloud-stream-tools - ${project.version} - - checkstyle-validation validate - checkstyle.xml - checkstyle-header.txt - checkstyle-suppressions.xml + spring-cloud-stream-tools/src/main/resources/checkstyle.xml + spring-cloud-stream-tools/src/main/resources/checkstyle-header.txt + spring-cloud-stream-tools/src/main/resources/checkstyle-suppressions.xml UTF-8 true true