Trilarion / hale

An RPG with turn based combat
https://sourceforge.net/p/hale/wiki/Home/
GNU General Public License v2.0
2 stars 0 forks source link

Update dependencies #8

Open Trilarion opened 6 years ago

Trilarion commented 6 years ago

Update the dependent libraries to their newest versions unless they are incompatible with the current program code.

Trilarion commented 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.

Trilarion commented 6 years ago

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.

Trilarion commented 6 years ago

TWL requires "xpp3-1.1.4c" which is the latest version of xpp3 and available on Maven Central.

Trilarion commented 6 years ago

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.

Trilarion commented 6 years ago

LWJGL xpp3 and json-smart are now fetched from Maven Central.

Trilarion commented 6 years ago

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.

Trilarion commented 6 years ago

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.

Trilarion commented 6 years ago

I used the first choice (extracting the native binaries from the jar at gradle time).