Reputation: 441
I have two projects; main
and library
. The library
project uses worldwind
so has dependencies on the jogl
and gluegen
libraries, and are defined in my build.gradle
as follows:
dependencies {
api "org.jogamp.gluegen:gluegen-rt:2.1.5",
"org.jogamp.jogl:jogl-all:2.1"
runtime "org.jogamp.gluegen:gluegen-rt:2.1.5:natives-windows-amd64",
"org.jogamp.gluegen:gluegen-rt:2.1.5:natives-windows-i586",
"org.jogamp.gluegen:gluegen-rt:2.1.5:natives-linux-amd64",
"org.jogamp.gluegen:gluegen-rt:2.1.5:natives-linux-i586",
"org.jogamp.jogl:jogl-all:2.1:natives-windows-amd64",
"org.jogamp.jogl:jogl-all:2.1:natives-windows-i586",
"org.jogamp.jogl:jogl-all:2.1:natives-linux-amd64",
"org.jogamp.jogl:jogl-all:2.1:natives-linux-i586"
}
The main
project has the library
project as an implemtation
dependency. Everything compiles and runs fine from the command line i.e. the runtime libraries are located within the lib
directory of my distribution zip.
However, when I try to run/debug within Eclipse, the runtime gluegen-rt.dll
cannot be found. This is because gradle downloads the dependencies to different directories within my GRADLE_HOME
(from my local Nexus repo), but at runtime, they are required to be in the same directory (for the dll to be found, even though they are all on the classpath).
How can I get all of these dependencies to be in the same directory in my GRADLE_HOME
for Eclipse to find them so I can run and debug my application? I would prefer to have as little Eclipse specific code in by build.gradle
as this is not the only IDE we use.
Upvotes: 0
Views: 165