I use this:
task copyRuntimeDependencies(dependsOn: configurations.runtime.buildArtifacts,
type: Copy) {
into('build/output/lib')
from configurations.runtime
from configurations.runtime.allArtifacts*.file
}
Thus, I just do:
gradle copyRuntimeDependencies
and then I point INtellij (or eclipse, or whatever) at the build/output/lib
folder (name this what/where you want).
Now i'm going to sit quietly, in realization I answered a question on this
mailing list before Hans.
Roger
On Dec 30, 2009, at 7:34 AM, tbee wrote:
>
> I use a custom thingy to create jars-in-a-jar
> (http://kenai.com/projects/appjar/pages/Home) and for that I need to create
> a jar file that contains all required jars in the root plus the appjar
> classes and a custom manifest.mf.
>
> So I need to figure out two things:
> - how to get (a list of) all jars that are required at runtime, so I can add
> them
> - figure out a way to create my own jar, with custom files added
>
> For the second one there probably is a jar task, but the first... how to go
> about that?
>
>
>
> --
> View this message in context:
> http://old.nabble.com/best-way-to-gather-the-libraries-tp26966955p26966955.html
> Sent from the gradle-user mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
> http://xircles.codehaus.org/manage_email
>
>
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email