1
0
mirror of https://github.com/fabianonline/telegram_backup.git synced 2024-11-23 01:06:17 +00:00

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

View File

@ -33,7 +33,9 @@ def getVersionName= { ->
commandLine 'git', 'describe', '--tags', '--dirty' commandLine 'git', 'describe', '--tags', '--dirty'
standardOutput = stdout 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") { ant.propertyfile(file: "$project.rootDir/build/resources/main/build.properties") {