Remove duplicate gradle caching
MODIFY
.github/workflows/reusable-test.yml
.github/workflows/reusable-test.yml
@@ -66,6 +66,9 @@ jobs:
arguments: check -PtestJavaVersion=${{ matrix.test-java-version }} -PtestJavaVM=${{ matrix.vm }} -Porg.gradle.java.installations.paths=${{ steps.setup-test-java.outputs.path }} -Porg.gradle.java.installations.auto-download=false ${{ inputs.no-build-cache && ' --no-build-cache' || '' }}
# only push cache for one matrix option since github action cache space is limited
cache-read-only: ${{ inputs.cache-read-only || matrix.test-java-version != 11 || matrix.vm != 'hotspot' }}
+ # gradle enterprise is used for the build cache
+ gradle-home-cache-excludes: |
+ caches/build-cache-1
- name: Upload deadlock detector artifacts if any
if: always()

Remove duplicate gradle caching (#5522)