Multi-project configuration for parallel builds


(Matthew Jaggard) #1

I’m looking at migrating from ant to Gradle because we want to speed up builds by running projects in parallel and to simplify configuration, however it seems to me that these goals are mutually exclusive for Gradle builds. Hopefully I’m missing something.

So I’d like a nice example of a multi-project Gradle setup compiling 3 java projects such that A and B can be compiled in parallel and C depends on both. Also such that some properties can be configured (dynamically) and used in all three projects, perhaps configured in an additional root project.

Also posted here: http://stackoverflow.com/questions/16186095/gradle-multi-project-configuration


(Matthew Jaggard) #2

In general you should be able to get a parallel executed build for a project with three subprojects as you have described. I pushed a sample skeleton project setup at https://github.com/breskeby/gradle-snippets/tree/master/multiparallel

hope that helps,

cheers, René