From c4619ed714e88ae0891c218f08374383ce932ec0 Mon Sep 17 00:00:00 2001 From: Sailsman63 Date: Mon, 13 Mar 2023 21:44:09 -0500 Subject: [PATCH] Add documentation about SNAPSHOT builds. - Document location of snapshot builds - Update version referenced in examples to latest stable (3.5.2) --- .../ROOT/pages/getting-started/maven.adoc | 57 ++++++++++++++++++- 1 file changed, 55 insertions(+), 2 deletions(-) diff --git a/docs/modules/ROOT/pages/getting-started/maven.adoc b/docs/modules/ROOT/pages/getting-started/maven.adoc index a97ae9f73d..df36374cd4 100644 --- a/docs/modules/ROOT/pages/getting-started/maven.adoc +++ b/docs/modules/ROOT/pages/getting-started/maven.adoc @@ -51,7 +51,7 @@ repositories { mavenCentral() } -def jme3 = [v:'3.4.0-stable', g:'org.jmonkeyengine'] +def jme3 = [v:'3.5.2-stable', g:'org.jmonkeyengine'] dependencies { implementation "${jme3.g}:jme3-core:${jme3.v}" runtimeOnly "${jme3.g}:jme3-desktop:${jme3.v}" @@ -65,7 +65,7 @@ dependencies { ---- org.jmonkeyengine -   3.4.0-stable +   3.5.2-stable @@ -94,3 +94,56 @@ dependencies { ---- + +== Snapshots + +Typically, you will want to develop against the latest stable version of the engine. For testing +purposes, snapshot builds are generated and updated every time that changes are commited to the +master branch. + +You can add the snapshot repository to your build files, and set the version to the snapshot build: + + +=== Gradle + +[source,groovy] +---- +repositories { + mavenCentral() + maven {url 'https://s01.oss.sonatype.org/content/repositories/snapshots/'} +} + +/* +* Gradle defaults to cacheing artifacts for 24 hours. This entry makes sure that +* you are always using the absolute latest snapshot, but it does mean that the engine +* gets downloaded on every build. +*/ +configurations.all { + resolutionStrategy.cacheChangingModulesFor 0, 'seconds' +} + +def jme3 = [v:'3.7.0-SNAPSHOT', g:'org.jmonkeyengine'] +---- + +=== Maven + +[source,xml] +---- + + org.jmonkeyengine +   3.7.0-SNAPSHOT + + + + + mvnrepository + https://repo1.maven.org/maven2/ + + + snapshots + https://s01.oss.sonatype.org/content/repositories/snapshots/ + + +---- + +