Unlike maven, Gradle can happily use a single local repository for multiple Gradle builds. Whether that’s multiple subprojects in a multi module project building in parallel. Or totally separate gradle builds fired in parallel from separate processes.
To continue this discussion it’s probably best to state which approach you are currently taking (single multi-module maven build or multiple separate maven builds)
For a single multi-module build, Gradle will build subprojects that don’t depend on each other in parallel if you specify --parallel
at command line or set the property org.gradle.parallel=true
. So, if you convert your maven projects to gradle you should be able to benefit from parallel execution. Note that tasks within a single subproject will never run in parallel
If you find there’s specific tasks that should never run in parallel with one another, you can hack a dummy output directory that you configure on each of the tasks that must run in serial. More info here