BUILD-8977 custom Gradle cache#76
Conversation
8566310 to
2cd9b51
Compare
2cd9b51 to
784d88f
Compare
julien-carsique-sonarsource
left a comment
There was a problem hiding this comment.
Please specify in the Jira ticket and describe in the PR, the chosen implementation.
Did you find the previous custom usages in Cirrus CI?
There is need for
- customization parameters in addition to the default values
- custom path
- custom key (based on custom script)
- runner.os in the key?
- github.workflow in the key (as in build-maven)
9d07253 to
65dff3e
Compare
65dff3e to
c979725
Compare
🤖 Pull Request summaryThis PR implements custom Gradle caching to replace the default setup-gradle caching mechanism. • Adds two new inputs: Review focus: Verify the cache key generation logic covers all relevant Gradle files and that the fallback restore-keys pattern provides adequate cache hit rates.
|
6313c83
into
master



BUILD-8977
Cache Key Generation
*.gradleand*.gradle.ktsfiles (matches*.gradle*pattern)gradle/libs.versions.toml(version catalog)gradle/wrapper/gradle-wrapper.properties(matchesgradle*.propertiespattern)gradle.properties(modified during build with unique version numbers)gradle-${{ runner.os }}-${{ github.workflow }}-${{ hash }}Cached Directories
${{ env.GRADLE_USER_HOME }}/caches- Gradle build cache and dependencies${{ env.GRADLE_USER_HOME }}/wrapper- Gradle wrapper distributionscache-pathsinput (optional)Cache Restore Strategy
gradle-${{ runner.os }}-${{ github.workflow }}-for partial matchesThis is based on CirrusCI usage as well as usage in teams that migrated to GitHub already.