Skip to content

Commit 09203c3

Browse files
committed
ci: use Gradle wrapper instead of setup-gradle action to avoid cache conflicts
1 parent 5fb7b3c commit 09203c3

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

.github/workflows/gradle.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,9 @@ jobs:
4949
java-version: ${{ matrix.java }}
5050
distribution: temurin
5151

52-
- name: Setup Gradle ${{ matrix.gradle }}
53-
uses: gradle/actions/setup-gradle@v3
54-
with:
55-
gradle-version: ${{ matrix.gradle }}
56-
cache-disabled: true
52+
- name: Set Gradle wrapper to ${{ matrix.gradle }}
53+
run: |
54+
sed -i "s/gradle-[0-9.]*-bin.zip/gradle-${{ matrix.gradle }}-bin.zip/" gradle/wrapper/gradle-wrapper.properties
5755
5856
- name: Build mc${{ matrix.mc }}
5957
run: >

0 commit comments

Comments
 (0)