Skip to content

Commit

Permalink
Automate version schema.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pheotis committed Sep 25, 2024
1 parent 3e368bb commit 5247f49
Showing 1 changed file with 38 additions and 1 deletion.
39 changes: 38 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@
</dependency>
</dependencies>
<build>
<finalName>Stargate-${project.version}-${git.branch.caps}-${git.commit.id.abbrev}</finalName>
<finalName>${fullReleaseName}</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down Expand Up @@ -338,6 +338,43 @@
<commitIdGenerationMode>full</commitIdGenerationMode>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>3.6.0</version>
<executions>
<execution>
<id>filter_commits</id>
<phase>initialize</phase>
<goals>
<goal>regex-property</goal>
</goals>
<inherited>false</inherited>
<configuration>
<name>passOne</name>
<value>Stargate-${project.version}-${git.branch.caps}-${git.commit.id.abbrev}</value>
<regex>(alpha|beta|release).*</regex>
<replacement>${git.branch.caps}</replacement>
<failIfNoMatch>false</failIfNoMatch>
</configuration>
</execution>
<execution>
<id>filter_branches</id>
<phase>initialize</phase>
<goals>
<goal>regex-property</goal>
</goals>
<inherited>false</inherited>
<configuration>
<name>fullReleaseName</name>
<value>${passOne}</value>
<regex>(release).*</regex>
<replacement></replacement>
<failIfNoMatch>false</failIfNoMatch>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
<resources>
<resource>
Expand Down

0 comments on commit 5247f49

Please sign in to comment.