On 19/04/2011, at 12:01 PM, Howard Lewis Ship wrote:
> This seems like it should be easy.
>
> I have a top-level task:
>
> task continuousIntegration(dependsOn: ['build', 'aggregateJavadoc'])
>
> However, my top-level build.gradle doesn't define a build task
> (there's no Java code at the top level, just in the subprojects).
>
> What's the idiomatic way to create a top-level build target that, in
> effect, is dependent on each subproject's build task?
You can do something like this:
task build { dependsOn subprojects*.build }
--
Adam Murdoch
Gradle Co-founder
http://www.gradle.org
VP of Engineering, Gradleware Inc. - Gradle Training, Support, Consulting
http://www.gradleware.com