After a bit of fighting, it seems that I managed to put lwjgl to work with SBT (scala building tool)
just to let you guys know if someone find this useful, here is the build.sbt:
name := "lwjgl3-sandbox"
version := "0.0.1-SNAPSHOT"
scalaVersion := "2.11.8"
resolvers += Resolver.sonatypeRepo("snapshots") // <-- sbt has a predefined resolver for sonatype
val version_ = "3.0.1-SNAPSHOT"
val natives_mac = "natives-macos" // <-- you can add the other classifiers if you want
// you may (temporarily) disable the constant update by uncommenting the line below
// updateOptions := updateOptions.value.withLatestSnapshots(false)
// see: http://www.scala-sbt.org/0.13/docs/sbt-0.13-Tech-Previews.html
libraryDependencies += "org.lwjgl" % "lwjgl" % version_
libraryDependencies += "org.lwjgl" % "lwjgl" % version_ % "runtime" classifier natives_mac
libraryDependencies += "org.lwjgl" % "lwjgl-glfw" % version_
libraryDependencies += "org.lwjgl" % "lwjgl-glfw" % version_ % "runtime" classifier natives_mac
libraryDependencies += "org.lwjgl" % "lwjgl-opengl" % version_
// lwjgl-opengl does not have a native counterpart? took me a while to find this.
//libraryDependencies += "org.lwjgl" % "lwjgl-opengl" % version_ % "runtime" classifier natives_mac
I added this lines of code to a test be sure that everything was working fine:
System.out.println("Working Directory = " + System.getProperty("user.dir"));
System.out.println("Natives Directory = " + System.getProperty("java.library.path"));
ClassLoader cl = ClassLoader.getSystemClassLoader();
URL[] urls = ((URLClassLoader)cl).getURLs();
for(URL url: urls){
System.out.println(url.getFile());
}
converting the POM using scripts or using the a POM reader plugin for sbt did not work for me.