On Jan 12, 2009, at 6:31 PM, Niko Schmuck wrote:

Hi all,

... for a project layout like this ...

- F build.gradle
- D projectA
 - F build.gradle (declares dependencies for A)
- D projectB
 - F build.gradle (declares dependencies for B)

Is it possible to aggregate all dependencies from subprojects in the
parent project?
So that one can create a distro zip with all the referenced libs from
both projects (using mavenRepo) in the parent build.grade.

No problem. In the parent project you can for example say:

allLibs = subprojects.collect { subproject -> subproject.dependencies.runtime.resolve()) }.flatten()

I think this should work. Anyway, with subprojects you get a set of all subprojects.

- Hans



Thanks,
Niko

PS: On a side note, I had no luck with the (ant seems to ignore files
declaration)
createTask('dist') {
 ant.zip(destfile: 'foobar.zip') {
   files(includes: dependencies.resolve("runtime").join(','))
 }
}

I have no idea right now what the Ant problem is here. Why don't you use the Gradle archive methods:

dists {
        zip() {
                files(dependencies.resolve("runtime"))
        }
}

- Hans

--
Hans Dockter
Gradle Project lead
http://www.gradle.org





---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to