Browse Source

Try to fix the build again

MeFisto94 7 years ago
parent
commit
3eaabf677f
1 changed files with 5 additions and 1 deletions
  1. 5 1
      build.gradle

+ 5 - 1
build.gradle

@@ -31,7 +31,11 @@ repositories {
 
 if (System.getenv('TRAVIS') != null) {
     if (System.env.TRAVIS_TAG != "") {
-        ext.jmeEngineVersion = "3.2.0-" + System.env.TRAVIS_TAG + "-SNAPSHOT"
+        // v3.2.0-stable-sdk1 becomes 3.2.0-stable
+        // Intentionally not using lastIndexOf here, we want the second "-".
+        ext.jmeEngineVersion = System.env.TRAVIS_TAG.substring(1, System.env.TRAVIS_TAG.indexOf("-", System.env.TRAVIS_TAG.indexOf("-") + 1));
+        // The old way doesn't work anymore, not sure why.
+        //ext.jmeEngineVersion = "3.2.0-" + System.env.TRAVIS_TAG + "-SNAPSHOT"
     } else {
         if (System.env.TRAVIS_PULL_REQUEST == "false") {
             ext.jmeEngineVersion = "3.2.0-SNAPSHOT" // Use Beta 2 instead of 3.1.0-master-SNAPSHOT