Don't you have to do subprojects*.tasks*.build these days?  For some
reason, I've got it in my head that the direct project -> task link
was broken.

~~ Robert.

On Tue, Apr 19, 2011 at 12:08 AM, Adam Murdoch
<[email protected]> wrote:
>
> 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
>
>

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

    http://xircles.codehaus.org/manage_email


Reply via email to