This is an automated email from the ASF dual-hosted git repository.

jking pushed a commit to branch 0.12.1
in repository https://gitbox.apache.org/repos/asf/thrift.git


The following commit(s) were added to refs/heads/0.12.1 by this push:
     new 17fa32f  fix java build issue
17fa32f is described below

commit 17fa32f27556af3893beee9e1c364a4d997b3cbf
Author: James E. King III <[email protected]>
AuthorDate: Sat Mar 9 09:19:54 2019 -0500

    fix java build issue
---
 lib/java/build.gradle | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/lib/java/build.gradle b/lib/java/build.gradle
index 5b0541b..d03b273 100644
--- a/lib/java/build.gradle
+++ b/lib/java/build.gradle
@@ -45,11 +45,10 @@ defaultTasks 'build'
 // Version components for this project
 group = property('thrift.groupid')
 
-// Drop the -dev suffix, we use the SNAPSHOT suffix for non-release versions
 if (Boolean.parseBoolean(project.release)) {
-    version = parsedVersion
+    version = property('thrift.version')
 } else {
-    version = parsedVersion + '-SNAPSHOT'
+    version = property('thrift.version') + '-SNAPSHOT'
 }
 
 // Keeping the rest of the build logic in functional named scripts for clarity

Reply via email to