(Again) fixed auto version number.
This commit is contained in:
parent
9050f5a56f
commit
87ad6f2826
@ -20,7 +20,8 @@ def gitVersion() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
def versionCodeFromGit() {
|
def versionCodeFromGit() {
|
||||||
def versionCode = gitVersion() + (ext.configuration.buildDate.format("yyMMD")).toInteger()
|
def dayInYear = ext.configuration.buildDate.format("D").padLeft(3, '0')
|
||||||
|
def versionCode = gitVersion() + (ext.configuration.buildDate.format("yyMM") + dayInYear).toInteger()
|
||||||
println "version code " + versionCode
|
println "version code " + versionCode
|
||||||
return versionCode.toInteger()
|
return versionCode.toInteger()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user