Adding spotless-maven-plugin config

This commit is contained in:
Joakim Erdfelt 2024-01-03 03:08:01 -06:00
parent 8d3ea3b8b1
commit d2e4b5d7d9
No known key found for this signature in database
GPG Key ID: 2D0E1FB8FE4B68B4
1 changed files with 40 additions and 0 deletions

40
pom.xml
View File

@ -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>