Gradle now outputs the chosen version string.

This commit is contained in:
Fabian Schlenz 2017-02-18 13:05:24 +01:00
parent 6738e20fe4
commit 50ba11a86c
1 changed files with 3 additions and 1 deletions

View File

@ -33,7 +33,9 @@ def getVersionName= { ->
commandLine 'git', 'describe', '--tags', '--dirty'
standardOutput = stdout
}
return stdout.toString().trim()
def version = stdout.toString().trim()
logger.lifecycle("Version $version")
return version
}
ant.propertyfile(file: "$project.rootDir/build/resources/main/build.properties") {