Skip to content

Commit

Permalink
Merge pull request #3 from trocco-io/fix_remove_leading_v
Browse files Browse the repository at this point in the history
Remove leading "v" from tag
  • Loading branch information
d-hrs authored Aug 9, 2023
2 parents e6b8312 + f0f597e commit f23d334
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ configurations {
version = {
def vd = versionDetails()
if (vd.commitDistance == 0 && vd.lastTag ==~ /^v?[0-9]+\.[0-9]+\.[0-9]+([.-][a-zA-Z0-9.-]+)?/) {
vd.lastTag
vd.lastTag.replaceFirst(/^v/, "")
} else {
"0.0.0.${vd.gitHash}"
}
Expand Down

0 comments on commit f23d334

Please sign in to comment.