Skip to content

Commit

Permalink
fix(mvn) Correctly apply -SNAPSHOT suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
olivergondza committed Apr 29, 2024
1 parent 13bd7a2 commit 8faccf7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .mvn/extensions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
<extension>
<groupId>me.qoomon</groupId>
<artifactId>maven-git-versioning-extension</artifactId>
<version>9.6.6</version>
<version>9.8.0</version>
</extension>
</extensions>
12 changes: 7 additions & 5 deletions .mvn/maven-git-versioning-extension.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://github.com/qoomon/maven-git-versioning-extension https://qoomon.github.io/maven-git-versioning-extension/configuration-9.4.0.xsd">

<refs>
<ref type="branch">
<pattern>main</pattern>
<version>${describe.tag}.${describe.distance}${dirty}</version>
<refs considerTagsOnBranches="true"> <!-- Prefer tags if tip of the branch is tagged -->
<!-- Release - tagged commit -->
<ref type="tag">
<pattern>\d+\.\d+</pattern>
<version>${describe.tag}</version>
</ref>

<!-- Snapshot - untagged commit -->
<ref type="branch">
<pattern>.*</pattern>
<version>${ref}-${describe.tag}.${describe.distance}-${commit.short}-SNAPSHOT</version>
<version>${ref}-${describe.tag}+${describe.distance}-git${commit.short}-SNAPSHOT</version>
</ref>
</refs>
</configuration>

0 comments on commit 8faccf7

Please sign in to comment.