ansel1 wrote:
> 
> The root project has a distributionTar task.  All the children have a task
> called "prepForDistributionTar".  I somehow want to declare that root's
> distributionTask should depend on running prepForDistributionTar on all
> the children.
> 

Gradle's rich APIs make this a piece of cake. :-) For example, you could add
the following to the root project's build script:

gradle.projectsEvaluated { // make sure that all prepForDistributionTar
tasks have been defined
    distributionTar.dependsOn(subprojects.prepForDistributionTar)
}


ansel1 wrote:
> 
> Or maybe this use case is exactly what GradleBuild is for?
> 

GradleBuild is not a good fit here.

--
Peter Niederwieser 
Developer, Gradle
http://www.gradle.org
Trainer & Consultant, Gradleware
http://www.gradleware.com
Creator, Spock Framework
http://spockframework.org


--
View this message in context: 
http://gradle.1045684.n5.nabble.com/Dependencies-on-child-projects-when-root-project-doesn-t-have-the-same-tasks-tp3408123p3408316.html
Sent from the gradle-user mailing list archive at Nabble.com.

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

    http://xircles.codehaus.org/manage_email


Reply via email to