Skip to content

Commit

Permalink
Leading v in git tag (v1.2.3) is removed from version name (1.2.3) (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelhglass authored May 6, 2021
1 parent 9f5a5a3 commit 820069f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ def getVersionName = {
version=stdout.toString().trim()
if (version.count('-') > 1 || version.isEmpty())
version += '-SNAPSHOT'
if (version.getAt(0) == 'v')
version = version.substring(1)
return version
}
version=getVersionName()
Expand Down

0 comments on commit 820069f

Please sign in to comment.