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 19, 2023
1 parent 94308ce commit 1eeac5a
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 145

* Automatically sort and verify POM files

Airbase 144

* 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.2.1</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 @@ -1466,6 +1490,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 1eeac5a

Please sign in to comment.