How can I run multiple JavaExec tasks in parallel in a multi project build?


(Chris Prior) #1

I have a multi project build with a number of different types of project:

  • Grails project, built and run by grails-gradle-plugin - Standard java / groovy projects run by the application plugin - Many instances of the same project, tun by passing different params to the application plugin

I would like a single task in my parent project for convenience to kick off all of these tasks in parallel but can’t work out the best way to do this.

I see that calling run at the top level will delegate to all of the child projects (those who use the application plugin) run task, but this won’t work for:

  • The grails project - Multiple instances of the same project.

Thanks!


(Peter Niederwieser) #2

Currently, Gradle can only run projects in parallel, with the experimental ‘–parallel’ option.