added project.moduleVersion

This commit is contained in:
Brian Long 2024-08-15 18:16:10 -04:00
parent 0807afbcf9
commit 8f3d1e4a04

View File

@ -30,6 +30,34 @@
</resource>
</resources>
<plugins>
<plugin>
<groupId>com.inteligr8</groupId>
<artifactId>regex-maven-plugin</artifactId>
<version>1.0.5</version>
<executions>
<execution>
<id>acs-module-version</id>
<phase>initialize</phase>
<goals><goal>match-text</goal></goals>
<configuration>
<text>${project.version}</text>
<newProperty>project.moduleVersion</newProperty>
<regexes>
<!-- turn -SNAPSHOT into A0 -->
<regex>
<pattern>^(.*)-SNAPSHOT$</pattern>
<replacement>$1-A0</replacement>
</regex>
<!-- all others are just a copy -->
<regex>
<pattern>^(.*)$</pattern>
<replacement>$1</replacement>
</regex>
</regexes>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>