From 6670d2f3c0a06c951f0086a29c6b430520645a38 Mon Sep 17 00:00:00 2001 From: Jeanderson Candido Date: Thu, 5 Jul 2018 18:06:28 -0300 Subject: [PATCH 1/1] Fixes #95 - Using 'git desribe --tags' rather than hash --- build.gradle | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index d105247..3d2f0b5 100644 --- a/build.gradle +++ b/build.gradle @@ -5,6 +5,8 @@ plugins { id "eclipse" } +version = "git describe --tags".execute().text.trim() + sourceCompatibility = 1.8 targetCompatibility = 1.8 @@ -12,7 +14,7 @@ ext.manifestCommonAttrbutes = manifest { attributes( "Built-By": System.getProperty("user.name"), "Implementation-Vendor": "NASA Ames Research Center", - "Implementation-Version": "8.0" + "Implementation-Version": version ) } @@ -136,7 +138,7 @@ task srcDist(type: Zip) { description = "Builds the source distribution." baseName = project.name - version = "git rev-parse --short HEAD".execute().text.trim() + version = project.version classifier = "src" extension = "zip" @@ -162,7 +164,7 @@ task dist(type: Zip) { description = "Builds binary distribution." baseName = project.name - version = "git rev-parse --short HEAD".execute().text.trim() + version = project.version extension = "zip" destinationDir = buildDir -- 2.34.1