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