Skip to content

Commit

Permalink
Sort poms using the CQ plugin instead of a groovy script
Browse files Browse the repository at this point in the history
  • Loading branch information
ppalaga committed Mar 18, 2020
1 parent 9bfe8e8 commit 2e07491
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 315 deletions.
1 change: 1 addition & 0 deletions extensions-support/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
<packaging>pom</packaging>

<modules>
<!-- extensions a..z; do not remove this comment, it is important when sorting via mvn process-resources -Pformat -->
<module>ahc</module>
<module>aws</module>
<module>common</module>
Expand Down
47 changes: 38 additions & 9 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -482,23 +482,52 @@
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.gmaven</groupId>
<artifactId>groovy-maven-plugin</artifactId>
<groupId>org.l2x6.cq</groupId>
<artifactId>cq-maven-plugin</artifactId>
<executions>
<execution>
<id>sort-poms</id>
<inherited>false</inherited>
<goals>
<goal>execute</goal>
<goal>format</goal>
</goals>
<phase>process-resources</phase>
<configuration>
<properties>
<sortModulesPaths>extensions/pom.xml,integration-tests/pom.xml</sortModulesPaths>
<sortDependencyManagementPaths>poms/bom/pom.xml,poms/bom-deployment/pom.xml</sortDependencyManagementPaths>
<updateMvndRuleDirs>examples,integration-tests</updateMvndRuleDirs>
</properties>
<source>file:///${project.basedir}/tooling/scripts/sort-poms.groovy</source>
<sortModulesPaths>
<sortModulesPath>extensions/pom.xml</sortModulesPath>
<sortModulesPath>extensions-jvm/pom.xml</sortModulesPath>
<sortModulesPath>integration-tests/pom.xml</sortModulesPath>
</sortModulesPaths>
<sortDependencyManagementPaths>
<sortDependencyManagementPath>poms/bom/pom.xml</sortDependencyManagementPath>
<sortDependencyManagementPath>poms/bom-deployment/pom.xml</sortDependencyManagementPath>
</sortDependencyManagementPaths>
<updateMvndRuleDirs>
<updateMvndRuleDir>examples</updateMvndRuleDir>
<updateMvndRuleDir>integration-tests</updateMvndRuleDir>
</updateMvndRuleDirs>
<extensionDirs>
<extensionDir>
<path>extensions</path>
<artifactIdPrefix>camel-quarkus-</artifactIdPrefix>
</extensionDir>
<extensionDir>
<path>extensions-core</path>
<artifactIdPrefix>camel-quarkus-</artifactIdPrefix>
</extensionDir>
<extensionDir>
<path>extensions-jvm</path>
<artifactIdPrefix>camel-quarkus-</artifactIdPrefix>
</extensionDir>
<extensionDir>
<path>extensions-support</path>
<artifactIdPrefix>camel-quarkus-support-</artifactIdPrefix>
</extensionDir>
<extensionDir>
<path>integration-tests/support</path>
<artifactIdPrefix>camel-quarkus-integration-test-support-</artifactIdPrefix>
</extensionDir>
</extensionDirs>
</configuration>
</execution>
</executions>
Expand Down
306 changes: 0 additions & 306 deletions tooling/scripts/sort-poms.groovy

This file was deleted.

0 comments on commit 2e07491

Please sign in to comment.