Skip to content

Commit

Permalink
Merge pull request #21 from trocco-io/fix_version
Browse files Browse the repository at this point in the history
Fix version pattern
  • Loading branch information
u110 authored Jul 27, 2023
2 parents c9e0cea + 1159624 commit b023402
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ configurations {

version = {
def vd = versionDetails()
if (vd.commitDistance == 0 && vd.lastTag ==~ /^[0-9]+\.[0-9]+\.[0-9]+(\.[a-zA-Z0-9]+)?/) {
vd.lastTag
if (vd.commitDistance == 0 && vd.lastTag ==~ /^v[0-9]+\.[0-9]+\.[0-9]+(\.[a-zA-Z0-9]+)?/) {
vd.lastTag.substring(1)
} else {
"0.0.0.${vd.gitHash}.pre"
}
Expand Down

0 comments on commit b023402

Please sign in to comment.