Adding spotless-maven-plugin config
This commit is contained in:
parent
727affb9fb
commit
7bb8c2c6f9
40
pom.xml
40
pom.xml
|
@ -253,6 +253,46 @@
|
|||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>com.diffplug.spotless</groupId>
|
||||
<artifactId>spotless-maven-plugin</artifactId>
|
||||
<version>2.39.0</version>
|
||||
<configuration>
|
||||
<pom>
|
||||
<includes>
|
||||
<include>pom.xml</include>
|
||||
</includes>
|
||||
<sortPom>
|
||||
<nrOfIndentSpace>2</nrOfIndentSpace>
|
||||
<!-- default see https://github.com/Ekryd/sortpom/wiki/PredefinedSortOrderProfiles -->
|
||||
<predefinedSortOrder>recommended_2008_06</predefinedSortOrder>
|
||||
<!-- Sort properties -->
|
||||
<sortProperties>true</sortProperties>
|
||||
<!-- Sort modules -->
|
||||
<!-- <sortModules>true</sortModules>-->
|
||||
<!-- Sort plugin executions -->
|
||||
<sortExecutions>true</sortExecutions>
|
||||
<!-- Sort dependencies see https://github.com/Ekryd/sortpom/wiki/SortDependencies -->
|
||||
<sortDependencies>scope,groupId,artifactId</sortDependencies>
|
||||
<!-- Sort dependency exclusions -->
|
||||
<sortDependencyExclusions>groupId,artifactId</sortDependencyExclusions>
|
||||
<!-- Sort plugins: https://github.com/Ekryd/sortpom/wiki/SortPlugins -->
|
||||
<sortPlugins>groupId,artifactId</sortPlugins>
|
||||
</sortPom>
|
||||
</pom>
|
||||
<upToDateChecking>
|
||||
<enabled>true</enabled>
|
||||
</upToDateChecking>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
<goal>check</goal>
|
||||
</goals>
|
||||
<phase>validate</phase>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-enforcer-plugin</artifactId>
|
||||
|
|
Loading…
Reference in New Issue