Adding spotless-maven-plugin config
This commit is contained in:
parent
8d3ea3b8b1
commit
d2e4b5d7d9
40
pom.xml
40
pom.xml
|
@ -255,6 +255,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