|
|
|
@ -45,7 +45,6 @@ buildscript { |
|
|
|
|
|
|
|
|
|
ext { |
|
|
|
|
jmeRevision = 0 |
|
|
|
|
jmeNbmRevision = 0 |
|
|
|
|
jmeGitHash = "" |
|
|
|
|
jmeGitTag = "" |
|
|
|
|
jmeShortGitHash = "" |
|
|
|
@ -53,7 +52,6 @@ ext { |
|
|
|
|
jmeBranchName = "unknown" |
|
|
|
|
jmeFullVersion = "${jmeVersion}-UNKNOWN" |
|
|
|
|
jmePomVersion = "unknown" |
|
|
|
|
jmeNbmUcSuffix = "unknown" |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
def getReleaseInfo(String tag) { |
|
|
|
@ -133,8 +131,6 @@ task configureVersionInfo { |
|
|
|
|
if (releaseInfo != null) { |
|
|
|
|
jmeFullVersion = "${releaseInfo.baseVersion}${releaseInfo.releaseSuffix}" |
|
|
|
|
jmePomVersion = "${releaseInfo.mainVersion}${releaseInfo.releaseSuffix}" |
|
|
|
|
jmeNbmRevision = "0" |
|
|
|
|
jmeNbmUcSuffix = "stable/${releaseInfo.baseVersion}/plugins" |
|
|
|
|
} else { |
|
|
|
|
// SNAPSHOT |
|
|
|
|
jmeFullVersion = jmeMainVersion |
|
|
|
@ -149,20 +145,13 @@ task configureVersionInfo { |
|
|
|
|
if (jmeBranchName != "v3.1") { |
|
|
|
|
jmeFullVersion += "-${jmeBranchName}" |
|
|
|
|
jmePomVersion += "-${jmeBranchName}" |
|
|
|
|
jmeNbmUcSuffix = "${jmeBranchName}-" |
|
|
|
|
} else { |
|
|
|
|
jmeNbmUcSuffix = "" |
|
|
|
|
} |
|
|
|
|
jmeNbmUcSuffix += "nightly/" + jmeMainVersion + "/plugins" |
|
|
|
|
jmeFullVersion += "-${jmeRevision}" |
|
|
|
|
jmePomVersion += "-SNAPSHOT" |
|
|
|
|
jmeNbmRevision = jmeRevision |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
logger.warn("Full Version: ${jmeFullVersion}") |
|
|
|
|
logger.warn("POM Version: ${jmePomVersion}") |
|
|
|
|
logger.warn("NBM Revision: ${jmeNbmRevision}") |
|
|
|
|
logger.warn("NBM UC Suffix: ${jmeNbmUcSuffix}") |
|
|
|
|
} catch (ex) { |
|
|
|
|
// Failed to get repo info |
|
|
|
|
logger.warn("Failed to get repository info: " + ex.message + ". " + \ |
|
|
|
|