This should work:
task copyRuntimeDependencies(type: Copy) {
subprojects {
dependsOn project.configurations.runtime.buildArtifacts
from project.configurations.runtime
from project.configurations.runtime.allArtifacts*.file
}
into('libs')
}
Etienne
On 10.11.2010, at 03:06, Roger Studner wrote:
> Somewhere, long ago, I found this:
>
>
> task copyRuntimeDependencies(dependsOn:
> configurations.runtime.buildArtifacts, type: Copy) {
> into('libs')
> from configurations.runtime
> from configurations.runtime.allArtifacts*.file
> }
>
>
> I've used it over time on my small hackery projects when I wanted to just
> dump all my libs into a folder.
>
> So.. the question then.. is on a giant multi-project build.. how to achieve
> this?
>
> Obviously, I could run this task in every subproject, and then aggregate the
> various lib folders manually(ish).
>
> and, obviously, if I declare this in the "shell root" of the whole
> multi-project, it just dies because there is no runtime configuration in the
> root ;)
>
> Any thoughts/people tackle this before?
>
> Thanks,
> Roger
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
> http://xircles.codehaus.org/manage_email
>
>
Etienne Studer
Senior Software Developer
Canoo Engineering AG
Kirschgartenstrasse 5
CH-4051 Basel
T +41 61 228 94 44
F +41 61 228 94 49
[email protected]
www.canoo.com
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email