We have a huge maven project that we’re migrating over to gradle (yay!).
However we’re missing out on one interesting maven feature(?) that allows us to get our builds to run faster on CI servers. Currently we have a several stage pipeline, the first stage of which builds all maven artifacts and publishes it into a repository. Subsequent stages in the pipeline don’t need to build all maven sub-modules because it’s able to resolve them from the repository (published out of the first stage).
Is there a way to achieve this using gradle. Ideally what we’d want is for gradle to figure out that
project(':foo') is really
com.example:foo:1.0 and resolve it out of the maven repository instead of having to build
foo along with its transitive dependencies.
Is there any way to speed up such multi-project builds on a fairly large deployment pipeline?