This adds build caching and build scans.
The changes required disabling scans when using the maven invoker plugin in order to not cause duplicate build scans when invoking other maven builds.
There is also an empty .mvn
folder in the spring-boot-starters project to prevent duplicate build scans as well since there is no way to pass properties to the maven-javadoc-plugin.
The checkstyle plugin was causing a cache miss with the propertyExpansion
because it contains an absolute path. The absolute path is now ignored and instead the files are added as inputs to the checkstyle plugin.
This only enables the local build cache. The remote cache is not yet enabled.
On my local machine:
./mvnw clean install
build times go from about 30 minutes to about 10 minutes.
./mvnw clean install -Pfull
build times go from about 60 minutes to about 13 minutes.
Comment From: pivotal-issuemaster
@runningcode Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.
Comment From: pivotal-issuemaster
@runningcode Thank you for signing the Contributor License Agreement!
Comment From: wilkinsona
Thanks very much for the PR, @runningcode. This is currently blocked on https://github.com/spring-io/gradle-enterprise-conventions/issues/8.
Comment From: wilkinsona
0.0.5 of the extension is now on Maven Central so this is no longer blocked.
Comment From: runningcode
@wilkinsona I've updated this PR to use 0.0.5 of the Spring gradle-enterprise-conventions-maven-extension
.
Comment From: wilkinsona
Thanks very much, @runningcode. This has been merged into 2.1.x and forwards in 2.2.x.