diff --git a/build.gradle b/build.gradle index c43bdf29b8ba11ffd79bc797e8a1fb13b7566b1d..f51aeae6179477b0f1d8c0feebe9163b7d4871fe 100644 --- a/build.gradle +++ b/build.gradle @@ -20,7 +20,7 @@ import org.apache.tools.ant.filters.ReplaceTokens // Basic settings group = 'it.unibz.inf.isochrone' -version = '0.2.2-SNAPSHOT' +version = '0.2.3-SNAPSHOT' description = 'PhD project of Nikolaus Krismer' sourceCompatibility=1.7 @@ -72,9 +72,15 @@ gradle.taskGraph.whenReady {taskGraph -> if (version.endsWith('-SNAPSHOT')) { println "Building SNAPSHOT version $version" + cargo.deployable { + context = 'testing' + } } else { isRelease = true; println "Building RELEASE version $version" + cargo.deployable { + context = 'isochrone' + } } } @@ -150,9 +156,7 @@ cargo { containerId = cargoContainer port = cargoPort as int - deployable { - context = "${isRelease ? 'isochrone' : 'testing'}" - } + // deployable part is set by versioning above remote { hostname = cargoHostname