spring-projects / spring-data-examples

Spring Data Example Projects
Apache License 2.0
5.17k stars 3.39k forks source link

Connect build to ge.spring.io to benefit from deep build insights and faster builds #673

Closed erichaagdev closed 10 months ago

erichaagdev commented 10 months ago

This pull request connects the build to the Gradle Enterprise instance at https://ge.spring.io/. This allows the Spring Data Examples project to benefit from deep build insights provided by build scans and faster build speeds for all contributors as a result of local and remote build caching.

This Gradle Enterprise instance has all features and extensions enabled and is freely available for use by Spring Data Examples and all other Spring projects. On this Gradle Enterprise instance, Spring Data Examples will have access not only to all of the published build scans, but other aggregate data features such as:

Spring Boot, Spring Framework, and Spring Security are already connected to https://ge.spring.io/ and are benefiting from these features.

Appropriate access must be configured to publish build scans. To provision a Gradle Enterprise access key for local development, you can invoke the following Maven goal:

./mvnw gradle-enterprise:provision-access-key

For instructions to connect CI to the remote build cache and to publish build scans, please follow the instructions here in Gradle Enterprise Conventions. You can disregard that this is a Gradle plugin, the instructions in the README work the same.

Please let me know if there are any questions about the value of Gradle Enterprise or the changes in this pull request and I’d be happy to address them.

mp911de commented 10 months ago

Can we selectively disable test avoidance? Spring Data examples are here to let folks run tests. By skipping tests by the extension:

[INFO] --- surefire:3.1.2:test (default-test) @ spring-data-jpa-graalvm-native ---
[INFO] Loaded from the build cache, saving 2.281s

we avoid what this project advocates for.

erichaagdev commented 10 months ago

Thanks for the additional context @mp911de! I have pushed a commit which disables build caching for tests. In the resulting build scan we can see the cacheability status of each test task is Goal execution marked as not cacheable, yet we are still able to get some avoidance on the compilation.

mp911de commented 10 months ago

Thank you for your contribution. That's merged now.