|
@@ -61,11 +61,12 @@ def getReleaseInfo(String tag) {
|
|
// not a tagged commit
|
|
// not a tagged commit
|
|
return null;
|
|
return null;
|
|
}
|
|
}
|
|
- if (!tag.startsWith("v")) {
|
|
|
|
|
|
+ /*if (!tag.startsWith("v")) {
|
|
// syntax error
|
|
// syntax error
|
|
return null;
|
|
return null;
|
|
}
|
|
}
|
|
tag = tag.substring(1)
|
|
tag = tag.substring(1)
|
|
|
|
+ The SDK has it’s own versioning scheme which doesn’t start with v…*/
|
|
|
|
|
|
String[] parts = tag.split("-", 2);
|
|
String[] parts = tag.split("-", 2);
|
|
String mainVersion;
|
|
String mainVersion;
|
|
@@ -79,6 +80,7 @@ def getReleaseInfo(String tag) {
|
|
releaseName = parts[1];
|
|
releaseName = parts[1];
|
|
if (releaseName.size() == 0) {
|
|
if (releaseName.size() == 0) {
|
|
// syntax error
|
|
// syntax error
|
|
|
|
+ println "Warning: getReleaseInfo() found an errorneous tag: \"" + tag + "\". Syntax Error: Release Name is of Length 0!";
|
|
return null;
|
|
return null;
|
|
}
|
|
}
|
|
} else if (parts.length == 1) {
|
|
} else if (parts.length == 1) {
|
|
@@ -87,17 +89,25 @@ def getReleaseInfo(String tag) {
|
|
mainVersion = parts[0];
|
|
mainVersion = parts[0];
|
|
} else {
|
|
} else {
|
|
// error
|
|
// error
|
|
|
|
+ println "Warning: getReleaseInfo() found an errorneous tag: \"" + tag + "\". Syntax Error: The Tag didn't contain the expected number of dash-seperated keywords"
|
|
return null;
|
|
return null;
|
|
}
|
|
}
|
|
|
|
|
|
if (mainVersion.size() == 0) {
|
|
if (mainVersion.size() == 0) {
|
|
// syntax error
|
|
// syntax error
|
|
|
|
+ println "Warning: getReleaseInfo() found an errorneous tag: \"" + tag + "\". Syntax Error: The Main Version (e.g. 3.1) couldn't be extracted successfully."
|
|
return null;
|
|
return null;
|
|
}
|
|
}
|
|
|
|
|
|
parts = mainVersion.split("\\.");
|
|
parts = mainVersion.split("\\.");
|
|
|
|
+ if (parts.size() == 2) {
|
|
|
|
+ mainVersion = mainVersion + ".0" // Assume Revision Zero
|
|
|
|
+ parts = mainVersion.split("\\.");
|
|
|
|
+ }
|
|
|
|
+
|
|
if (parts.size() != 3) {
|
|
if (parts.size() != 3) {
|
|
// syntax error
|
|
// syntax error
|
|
|
|
+ println "Warning: getReleaseInfo() found an errorneous tag: \"" + tag + "\". Syntax Error: The Tags Main Version didn't consist of two/three parts"
|
|
return null;
|
|
return null;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -133,7 +143,7 @@ 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"
|
|
|
|
|
|
+ jmeNbmRevision = jmeRevision
|
|
jmeNbmUcSuffix = "stable/${releaseInfo.baseVersion}/plugins"
|
|
jmeNbmUcSuffix = "stable/${releaseInfo.baseVersion}/plugins"
|
|
} else {
|
|
} else {
|
|
// SNAPSHOT
|
|
// SNAPSHOT
|