diff --git a/gradle.properties b/gradle.properties
index 69670e660..4380c31a0 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -4,6 +4,8 @@ jmeVersion = 3.1.0
jmeMainVersion = 3.1
# Version addition pre-alpha-svn, Stable, Beta
jmeVersionTag = SNAPSHOT
+# Increment this each time jmeVersionTag changes but jmeVersion stays the same
+jmeVersionTagID = 0
# specify if JavaDoc should be built
buildJavaDoc = true
diff --git a/sdk/build.gradle b/sdk/build.gradle
index bcf6311e0..d1d71b8fc 100644
--- a/sdk/build.gradle
+++ b/sdk/build.gradle
@@ -389,13 +389,13 @@ copyTestSources.outputs.dir "JME3TestsTemplateAndroid/src/"
ant.properties['plugins.version'] = jmeVersion
ant.properties['app.version']= jmeFullVersion
-ant.properties['git.revision']= jmeRevision
+ant.properties['nbm.revision']= jmeNbmRevision
task buildSdk(dependsOn: [copyBaseLibs, copyProjectLibs, createProjectXml, createBaseXml, copyTestSources]) <<{
ant.propertyfile(file: "nbproject/project.properties") {
entry( key: "plugins.version", value: "${jmeVersion}")
entry( key: "app.version", value: "${jmeFullVersion}")
- entry( key: "git.revision", value: "${jmeRevision}")
+ entry( key: "nbm.revision", value: "${jmeNbmRevision}")
}
ant.ant(dir: ".", antfile: "build.xml", target: "build")
}
diff --git a/sdk/build.xml b/sdk/build.xml
index b843d779a..ffa0b8fe8 100644
--- a/sdk/build.xml
+++ b/sdk/build.xml
@@ -192,12 +192,12 @@
- Setting implementation version for ${module_dir} to revision: ${git.revision}
-
+ Setting implementation version for ${module_dir} to revision: ${nbm.revision}
+
- Removing implementation version for ${module_dir} from revision: ${git.revision}
-
+ Removing implementation version for ${module_dir} from revision: ${nbm.revision}
+
@@ -208,7 +208,7 @@
-
+
diff --git a/sdk/nbproject/project.properties b/sdk/nbproject/project.properties
index d7206b308..fd72faa2c 100644
--- a/sdk/nbproject/project.properties
+++ b/sdk/nbproject/project.properties
@@ -10,6 +10,7 @@ app.icon.icns=jmonkeyplatform.icns
app.version=3.1-snapshot-github
#version number used for plugins, only 3 numbers (e.g. 3.1.3)
plugins.version=3.1.0
+nbm.revision=0
#command line args
run.args.extra=-J-Xmx512m -J-XX\:PermSize\=128m -J-XX\:MaxDirectMemorySize\=2048m -J-Dsun.zip.disableMemoryMapping\=true -J-Dapple.awt.graphics.UseQuartz\=true -J-Dsun.java2d.noddraw\=true
auxiliary.org-netbeans-modules-apisupport-installer.license-file=license-jme.txt
diff --git a/version.gradle b/version.gradle
index 4aa9c1af8..a02f1d358 100644
--- a/version.gradle
+++ b/version.gradle
@@ -5,25 +5,25 @@
Nightly Build Snapshot
* Full Version: 3.1.0-5124
* POM Version: 3.1.0-SNAPSHOT
- * NBM Version: 3.1.0.5124
+ * NBM Revision: 5124
* NBM UC Suffix: nightly/3.1/plugins
Nightly Build Snapshot (PBRIsComing branch)
* Full Version: 3.1.0-PBRIsComing-5124
* POM Version: 3.1.0-PBRIsComing-SNAPSHOT
- * NBM Version: 3.1.0.5124
+ * NBM Revision: 5124
* NBM UC Suffix: PBRIsComing-nightly/3.1/plugins
Alpha1 Release
* Full Version: 3.1.0-alpha1
* POM Version: 3.1.0-alpha1
- * NBM Version: 3.1.0.0
- * NBM UC Suffix: alpha1/3.1/plugins
+ * NBM Revision: 1
+ * NBM UC Suffix: stable/3.1/plugins
Final Release
* Full Version: 3.1.0
* POM Version: 3.1.0
- * NBM Version: 3.1.0.0
+ * NBM Revision: 5
* NBM UC Suffix: stable/3.1/plugins
*/
@@ -41,6 +41,7 @@ buildscript {
ext {
jmeRevision = 0
+ jmeNbmRevision = 0
jmeGitHash = ""
jmeGitTag = ""
jmeShortGitHash = ""
@@ -48,7 +49,6 @@ ext {
jmeBranchName = "unknown"
jmeFullVersion = "${jmeVersion}-UNKNOWN"
jmePomVersion = "unknown"
- jmeNbmVersion = "0.0.0.0"
jmeNbmUcSuffix = "unknown"
}
@@ -64,7 +64,6 @@ task configureVersionInfo {
jmeFullVersion = "${jmeVersion}"
jmePomVersion = jmeVersion
- jmeNbmVersion = jmeVersion
if (jmeBranchName != "master") {
jmeFullVersion += "-${jmeBranchName}"
@@ -86,18 +85,18 @@ task configureVersionInfo {
if (jmeVersionTag == "SNAPSHOT") {
jmeFullVersion += "-${jmeRevision}"
jmePomVersion += "-SNAPSHOT"
- jmeNbmVersion += ".${jmeRevision}"
+ jmeNbmRevision = jmeRevision
} else if (jmeVersionTag == "") {
- jmeNbmVersion += ".0"
+ jmeNbmRevision = jmeVersionTagID
} else {
jmeFullVersion += "-${jmeVersionTag}"
jmePomVersion += "-${jmeVersionTag}"
- jmeNbmVersion += ".0"
+ jmeNbmRevision = jmeVersionTagID
}
logger.warn("Full Version: ${jmeFullVersion}")
logger.warn("POM Version: ${jmePomVersion}")
- logger.warn("NBM Version: ${jmeNbmVersion}")
+ logger.warn("NBM Revision: ${jmeNbmRevision}")
logger.warn("NBM UC Suffix: ${jmeNbmUcSuffix}")
} catch (ex) {
// Failed to get repo info