Skip to content

Commit

Permalink
Add sortpom-maven-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
wendigo committed Sep 27, 2023
1 parent 3f1ae95 commit dbd07e0
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Airbase 147

* Automatically sort and verify POM files

Airbase 146

* Plugin updates:
Expand Down
41 changes: 41 additions & 0 deletions airbase/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,30 @@

<pluginManagement>
<plugins>
<plugin>
<groupId>com.github.ekryd.sortpom</groupId>
<artifactId>sortpom-maven-plugin</artifactId>
<version>3.3.0</version>
<configuration>
<createBackupFile>false</createBackupFile>
<nrOfIndentSpace>4</nrOfIndentSpace>
<sortModules>true</sortModules>
<sortDependencies>scope,groupId,artifactId</sortDependencies>
<sortDependencyExclusions>groupId,artifactId</sortDependencyExclusions>
<spaceBeforeCloseEmptyElement>true</spaceBeforeCloseEmptyElement>
<expandEmptyElements>false</expandEmptyElements>
<verifyFailOn>Strict</verifyFailOn>
<verifyFail>Stop</verifyFail>
</configuration>
<executions>
<execution>
<goals>
<goal>verify</goal>
</goals>
<phase>validate</phase>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-scm-plugin</artifactId>
Expand Down Expand Up @@ -1459,6 +1483,23 @@
</plugins>
</build>
</profile>
<profile>
<id>sort-pom-check</id>
<activation>
<property>
<name>air.check.skip-all</name>
<value>!true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>com.github.ekryd.sortpom</groupId>
<artifactId>sortpom-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>dependency-scope-check</id>
<activation>
Expand Down

0 comments on commit dbd07e0

Please sign in to comment.