diff --git a/pom.xml b/pom.xml index 6de46d96..ba54dd08 100644 --- a/pom.xml +++ b/pom.xml @@ -698,6 +698,19 @@ + + com.diffplug.spotless + spotless-maven-plugin + + + spotless-check + + check + + validate + + + org.apache.maven.plugins maven-site-plugin @@ -734,26 +747,24 @@ + + jdk8 + + [1.8,] + + + + 2.30.0 + + java11+ [11,) - ${mojo.java.target} - - - - - com.diffplug.spotless - spotless-maven-plugin - - false - - - diff --git a/src/site/markdown/index.md.vm b/src/site/markdown/index.md.vm index b1f5b7fc..91934d5f 100644 --- a/src/site/markdown/index.md.vm +++ b/src/site/markdown/index.md.vm @@ -43,35 +43,15 @@ with options: - other imports - static import -In order to use `spotless` in your project, you should add to your pom.xml - -Newer version of spotless requires JDK 11, so it must be add in profile unless your project requires 11 by default. +`spotless` will be activated in your project per default, if you don't want to use it ```xml - 11 + true - - - java11+ - - [11,) - - - - - com.diffplug.spotless - spotless-maven-plugin - - - - - ``` -When `spotless` will be enabled, each build will be check according to correct code format. - To fix code, simply run: ``` mvn spotless:apply