|
@@ -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
|