Use different git command for version name

This commit is contained in:
Tim Mutton committed 2017-05-04 17:13:31 +10:00
1 parent 3d95bf0837
commit 8908d10028
1 file changed
+3 -1
+3 -1
View File
@@ -94,5 +94,7 @@ dependencies {
}
def getVersion() {
return 'git describe --abbrev=0'.execute([], project.rootDir).text.trim()
return 'git describe --always --long'.execute([], project.rootDir).text
.trim()
.replaceAll(/(-0)?-[^-]+$/, "")
}