Hey,

>I'd like it to only have the external libs included

Here's one of the ways (not beautiful I admit)

task ideLibs(type: Sync) {
  from {

configurations.compile.resolvedConfiguration.firstLevelModuleDependencies*.moduleArtifacts*.file
  }
  ...

>Additionally, how do I refer to all the IDE source jars to copy those too?

Adam proposed a way to do it here (for all dependencies, including
transitive):
http://gradle.1045684.n5.nabble.com/New-artifact-repository-structure-tp4642552p4653157.html

Cheers!

On Fri, Jul 29, 2011 at 1:59 PM, Hani Suleiman <[email protected]> wrote:

> I have the following structure:
>
> subproject A dependencies:
>  -- huge list of third party dependencies
>
> subproject B dependencies:
>  -- Couple of external deps
>  -- project A
>
> I want to get a hold of all the external dependencies only for each
> project. Currently when using this:
>
>  task ideLibs(type: Sync) {
>    from configurations.compile
>    into "libs"
>  }
>
> It'll copy all the dependencies transitively. So project B ends up with all
> external deps + project A artifacts + its external deps. I'd like it to only
> have the external libs included, to end up with:
>
> subprojectA/libs/: lots of jars
> subprojectB/libs: couple of external dep jars (without anything that's in
> A)
>
> Additionally, how do I refer to all the IDE source jars to copy those too?
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>


-- 
Szczepan Faber
Principal engineer@gradleware
Lead@mockito

Reply via email to