Hello,New to Gradle, so please forgive the dumb questions. I've almost got my
project set up.But I'm getting hung up on couple small things..
1.I'm using the eclipseClasspath task. I have some property files that need to
be included in the classpath. I can't figure out how to add an arbitrary fold
into my dependencies. When I set it up in Eclipse, the .classpath entry looks
like this...<classpathentry kind="lib" path="lib/resources"/>Any ideas on
what's the proper entry in my .gradle file to achieve this output in my
.classpath file?
2.I'm creating a fat jar with this following task.jar { from
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }}This
works, except I have one oddity that it doesn't consider. I have a lib
directory with a DLL (one of my jar's uses JNI) file that needs to be in the
jar. I tried adding a fileset(dir:"lib") to the jar task, but it bombs on
that. What's the proper way to put the dll into a specific directory in the
output jar? If I include the DLL file in my dependencies, then it also
includes it in the output .classpath file, then Eclipse complains about having
a DLL in there. Any ideas?
3.How do you tell Gradle to clean the .classpath file every time you run
eclipseClasspath? I tried eclipseClasspath(dependsOn: cleanEclipseClasspath),
but it didn't like that.
Thanks!