Use inbuilt setup-java for build caching.

This commit is contained in:
FireMaskterK 2021-10-31 18:51:45 +00:00
parent 8eff8a26e7
commit 89dcdf23a4
No known key found for this signature in database
GPG Key ID: 49451E4482CC5BCD
1 changed files with 1 additions and 7 deletions

View File

@ -21,13 +21,7 @@ jobs:
java-version: ${{ matrix.java }} java-version: ${{ matrix.java }}
distribution: temurin distribution: temurin
check-latest: true check-latest: true
cache: "gradle"
- name: Cache Gradle dependencies
uses: actions/cache@v2.1.6
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Run Build - name: Run Build
run: chmod +x ./gradlew && ./gradlew build run: chmod +x ./gradlew && ./gradlew build