pull version from VERSION

This commit is contained in:
Jakub Sokołowski 2018-05-24 11:30:17 +02:00
parent 04ddbc708e
commit ec6df03fbc
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
1 changed files with 2 additions and 6 deletions

View File

@ -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","")
}
}