-
Notifications
You must be signed in to change notification settings - Fork 12
jMonkey Support
philcali edited this page Apr 21, 2011
·
9 revisions
jMonkey does not have a public maven repo for its dependencies. Making sbt go fetch the latest is about the best we can get here.
The default behavior is that update
will pull the latest nightly build for jMonkey version 3.
class Project(info: ProjectInfo) extends LWJGLProject(info) with JMonkey
// Target a different version with overrides
class Project... {
override def jmonkeyBaseVersion = "jME2"
override def targetedVersion = "2011-03-21"
}
This kind of configuration will only pull once, as expected.
Once you have successfully configured your project, you can install the targeted jMonkey build on your local machine so multiple projects could use it.
Do so by running jmonkey-cache
. The plugin will always look at the cache first before trying to fetch a gargantuan archive from jmonkey nightly.
The plugin comes with two more helpful sbt actions:
-
jmonkey-local
: Peeks into your cache to see what you have installed. Helpful for setting up multiple jMonkey projects, but you forget what build you used last. -
jmonkey-clean-cache
: Simply blows away your jmonkey cache. If you are afraid that its eating too much space, then blow it away.