1
0
mirror of https://github.com/fabianonline/telegram_backup.git synced 2024-11-22 08:46:15 +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'
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") {