diff --git a/.github/workflows/changelog-print.yml b/.github/workflows/changelog-print.yml index 330f78cda0..a3009e3a39 100644 --- a/.github/workflows/changelog-print.yml +++ b/.github/workflows/changelog-print.yml @@ -15,7 +15,8 @@ jobs: with: java-version: 11 distribution: 'temurin' - cache: 'gradle' - name: gradle caching uses: gradle/gradle-build-action@v2 + with: + gradle-home-cache-cleanup: true - run: ./gradlew changelogPrint diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1f08c201f5..86cf955059 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,7 +26,10 @@ jobs: with: distribution: "temurin" java-version: 11 - cache: gradle + - name: gradle caching + uses: gradle/gradle-build-action@v2 + with: + gradle-home-cache-cleanup: true - name: spotlessCheck run: ./gradlew spotlessCheck --build-cache - name: assemble testClasses @@ -60,7 +63,10 @@ jobs: with: distribution: "temurin" java-version: ${{ matrix.jre }} - cache: gradle + - name: gradle caching + uses: gradle/gradle-build-action@v2 + with: + gradle-home-cache-cleanup: true - name: build (maven-only) if: matrix.kind == 'maven' run: ./gradlew :plugin-maven:build -x spotlessCheck --build-cache diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 9a1dcdf609..d41dc8fc30 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -42,9 +42,10 @@ jobs: with: java-version: 11 distribution: 'temurin' - cache: 'gradle' - name: gradle caching uses: gradle/gradle-build-action@v2 + with: + gradle-home-cache-cleanup: true - name: publish all if: "${{ github.event.inputs.to_publish == 'all' }}" run: |