diff --git a/platform_build/build-maven.xml b/platform_build/build-maven.xml index e8cea19c..9d1767d3 100644 --- a/platform_build/build-maven.xml +++ b/platform_build/build-maven.xml @@ -32,6 +32,14 @@ System.out.println("Fixing LWJGL Maven version (Maven version should be x.y.z)"); mavenVersion = originalVersion + ".0"; } + if(!mavenVersion.match(/^.*-SNAPSHOT$/)){ + var forceSnapshot = project.getProperty("snapshot") + if(forceSnapshot!="false"){ + System.out.println("Forcing Maven Version to Snapshot"); + mavenVersion = mavenVersion + "-SNAPSHOT"; + } + } + project.setNewProperty("lwjgl-maven-version",mavenVersion); System.out.println("LWJGL Maven Version: " + project.getProperty("lwjgl-maven-version")); ]]> @@ -60,9 +68,9 @@ - - - + + +