From 3818b5b05e22715d0069e5d929fa2399eec94a0c Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Sun, 17 Mar 2019 11:22:36 +0100 Subject: [PATCH] Add rule to prevent Spring conventions to be imported See gh-871 --- initializr-generator-spring/pom.xml | 4 ++++ pom.xml | 3 ++- src/checkstyle/checkstyle.xml | 22 ++++++++++++++++++++++ src/checkstyle/import-control.xml | 12 ++++++++++++ 4 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 src/checkstyle/checkstyle.xml create mode 100644 src/checkstyle/import-control.xml diff --git a/initializr-generator-spring/pom.xml b/initializr-generator-spring/pom.xml index fc7d0807..b13d194a 100644 --- a/initializr-generator-spring/pom.xml +++ b/initializr-generator-spring/pom.xml @@ -9,6 +9,10 @@ initializr-generator-spring Spring Initializr :: Generator (Spring projects) + + ${basedir}/.. + + io.spring.initializr diff --git a/pom.xml b/pom.xml index cb15c84d..d082d312 100644 --- a/pom.xml +++ b/pom.xml @@ -193,8 +193,9 @@ validate ${disable.checks} - io/spring/javaformat/checkstyle/checkstyle.xml + src/checkstyle/checkstyle.xml true + main.basedir=${main.basedir} check diff --git a/src/checkstyle/checkstyle.xml b/src/checkstyle/checkstyle.xml new file mode 100644 index 00000000..63433b6f --- /dev/null +++ b/src/checkstyle/checkstyle.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + diff --git a/src/checkstyle/import-control.xml b/src/checkstyle/import-control.xml new file mode 100644 index 00000000..01666ca0 --- /dev/null +++ b/src/checkstyle/import-control.xml @@ -0,0 +1,12 @@ + + + + + + + + + + +