Open Trilarion opened 6 years ago
The currently used version of LWJGL is 2.9.1 and the newest available version of LWJGL 2 is 2.9.3.
The currently used version of TWL is from "Tue Jun 03 23:09:23 2014 +0200" and the latest version on the website is from "Thu Aug 14 00:53:14 2014 +0200", so not much change. Also TWL does not seem to have versions and is not available on Maven Central.
TWL requires "xpp3-1.1.4c" which is the latest version of xpp3 and available on Maven Central.
Hale requires "net.minidev:json-smart:1.0.9" which is not the latest version of json-smart but we want to replace json-smart with gson (see #5), so an update is not needed.
LWJGL xpp3 and json-smart are now fetched from Maven Central.
LWJGL 2.9.1 from Maven Central comes with "lwjgl-platform-2.9.1-natives-xxx.jar" dependencies but I have no clue how to access the native binaries inside the jar files. Need to work on that.
There seem to be two possibilities:
https://github.com/cjstehno/coffeaelectronica/wiki/Going-Native-with-Gradle and https://github.com/badlogic/lwjgl3-maven-gradle
The first extracts the native binaries from the jar at gradle time, the second at runtime (requiring more overhead but being more flexible). Not sure what is the best.
I used the first choice (extracting the native binaries from the jar at gradle time).
Update the dependent libraries to their newest versions unless they are incompatible with the current program code.