pull version from VERSION
This commit is contained in:
parent
04ddbc708e
commit
ec6df03fbc
|
@ -111,12 +111,8 @@ def getVersionName = { ->
|
|||
if (project.hasProperty("releaseVersion")) {
|
||||
return project.releaseVersion
|
||||
}
|
||||
|
||||
exec {
|
||||
commandLine "git", "describe", "--tags", "--always", "--dirty=+"
|
||||
standardOutput = stdOut
|
||||
}
|
||||
return stdOut.toString().replaceAll("\\s","")
|
||||
version = new File('../../VERSION').text
|
||||
return version.replaceAll("\\s","")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue