Skip to content
An sbt / lwjgl plugin
Scala
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
notes
src/main
.gitignore
LICENSE
README.md
build.sbt

README.md

sbt-lwjgl-plugin

This is a simple plugin for sbt specifically for LWJGL projects. The idea was taken from this post by Death by Misadventure.

Please visit the wiki for more info, roadmap, etc.

Currently SBT version 0.13 is not supported. You may have to force a lower version of SBT for your project by creating project/build.properties with something like sbt.version=0.12.4

Usage

In your project, create a project/plugins/build.sbt, whose contents are as follows:

addSbtPlugin("com.github.philcali" % "sbt-lwjgl-plugin" % "3.1.4")

To take advantage of the plugin's settings, you must add LWJGLPlugin.lwjglSettings either to your build.sbt or build.scala. For working in a particular child environment, use one of the satellite settings, ie: Nicol.nicolSettings or JMonkeyProject.jmonkeySettings.

Or, you can make use of the giter8 template, to kick off your project.

g8 philcali/lwjgl.g8

Once you answer all the appropriate questions, you will have a lwjgl project in awaiting.

How it works

The plugin makes use of public maven repo found at the LWJGL wiki. It pulls the dependencies, and extracts the lwjgl jar containing OS specific natives to your managedResource directory.

Note for Slick Devs: You may have to run update twice. The second time will patch an ivy dependency xml to pull the correct phys2d jar.

See the wiki for more detail about satellite project definition (ie: Slick2D, jMonkey, Nicol, Ardor3D)

Something went wrong with that request. Please try again.