Please understand that this tutorial gives you access to the latest development release of the engine. Whilst i and many others use this release to work with, it is by definition still being developed. Expect bleeding edge implementations to need work. If you don’t want that kind of hassle, please use the stable releases.
How to build jMonkeyEngine from GitHub source.
Here is the basic outline of our goal:
- Install git client - https://git-scm.com/downloads
- download jMonkeyEngine using git-client.
- update jMonkeyEngine using git-client.
- build jMonkeyEngine locally using gradle.
Repeat steps 3 and 4 whenever any changes have been committed to the master branch.
- Install Git Client
That’s it for configuring our environment. Now we just need to get the engine and build it. The files below can all be placed in the same directory and run without admin privileges. For example, I put all of these files into
D:\programming - and they will download/update files in the
Download the Engine:
This file downloads the engine into a dir called “jmonkey” using the git client.
Update the Engine:
This file downloads any changed files from github using the git client.
Build the Engine:
This file builds the engine using the gradle wrapper and places them in your local repository. Note that this is USER-SPECIFIC. My files are stored in
Using the built engine in your game
Add the maven plugin to your build script, and put the mavenLocal() repository in your list of repositories. Then just reference the dependencies as you would normally. Note that we are now using version 3.2.+ of the engine.
apply plugin: 'maven'
ext.jmeVersion = "[3.2,)"