Browse Source

Merge pull request #365 from tonihele/tarvis-deprecation

Try to get the tag name from properties
Toni Helenius 3 years ago
parent
commit
3ef11a2c2c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      version.gradle

+ 2 - 2
version.gradle

@@ -137,8 +137,8 @@ task configureVersionInfo {
         jmeShortGitHash = head.abbreviatedId
         jmeShortGitHash = head.abbreviatedId
         jmeBranchName = grgit.branch.current.name
         jmeBranchName = grgit.branch.current.name
         
         
-        if (System.env.TRAVIS_TAG != null) {
-            jmeGitTag = System.env.TRAVIS_TAG
+        if (project.hasProperty("tag_name")) {
+            jmeGitTag = project.getProperty("tag_name")
         } else {
         } else {
             jmeGitTag = grgit.tag.list().find { it.commit == head }
             jmeGitTag = grgit.tag.list().find { it.commit == head }
         }
         }