Skip to content

Conversation

@runningcode
Copy link
Contributor

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.

@pivotal-issuemaster
Copy link

@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.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jun 24, 2020
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.
@runningcode runningcode force-pushed the no/2.1.x/maven-enterprise branch from 261cbb8 to 57399e6 Compare June 24, 2020 11:25
@pivotal-issuemaster
Copy link

@runningcode Thank you for signing the Contributor License Agreement!

@wilkinsona wilkinsona added this to the 2.1.x milestone Jun 30, 2020
@wilkinsona wilkinsona added type: task A general task status: blocked An issue that's blocked on an external project change and removed status: waiting-for-triage An issue we've not yet triaged labels Jun 30, 2020
@wilkinsona wilkinsona self-assigned this Jun 30, 2020
@wilkinsona
Copy link
Member

Thanks very much for the PR, @runningcode. This is currently blocked on spring-io/develocity-conventions#8.

@wilkinsona
Copy link
Member

wilkinsona commented Jul 22, 2020

0.0.5 of the extension is now on Maven Central so this is no longer blocked.

@wilkinsona wilkinsona removed the status: blocked An issue that's blocked on an external project change label Jul 22, 2020
@runningcode
Copy link
Contributor Author

@wilkinsona I've updated this PR to use 0.0.5 of the Spring gradle-enterprise-conventions-maven-extension.

wilkinsona pushed a commit that referenced this pull request Jul 24, 2020
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.

See gh-22089
wilkinsona added a commit that referenced this pull request Jul 24, 2020
@wilkinsona wilkinsona changed the title Add Gradle Enterprise Maven Extension to 2.1.x Add Gradle Enterprise Maven Extension Jul 24, 2020
@wilkinsona
Copy link
Member

wilkinsona commented Jul 24, 2020

Thanks very much, @runningcode. This has been merged into 2.1.x and forwards in 2.2.x.

@wilkinsona wilkinsona modified the milestones: 2.1.x, 2.1.17 Jul 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: task A general task

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants