Better handling for version code automation.

This commit is contained in:
Amine 2018-11-15 21:11:15 +01:00
parent bdb71e9b14
commit 21ce061282

View File

@ -10,8 +10,8 @@ ext {
}
def gitVersion() {
def process = "git describe --abbrev=0 --tags".execute()
return process.text.substring(1).replaceAll("\\.", "").trim()
def process = "git for-each-ref refs/tags --sort=-taggerdate --format='%(refname:short)' --count=1".execute()
return process.text.replaceAll("'", "").substring(1).replaceAll("\\.", "").trim()
}
def versionCodeFromGit() {