From 50ba11a86c21b232c4f184324d8dfb0b81476420 Mon Sep 17 00:00:00 2001 From: Fabian Schlenz Date: Sat, 18 Feb 2017 13:05:24 +0100 Subject: [PATCH] Gradle now outputs the chosen version string. --- build.gradle | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index f7c26a1..2f5a241 100644 --- a/build.gradle +++ b/build.gradle @@ -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") {