Update actions/setup-java to v2

This commit is contained in:
TacoTheDank 2021-04-14 11:13:05 -04:00
parent b025bdf0c7
commit c74162c586
1 changed files with 10 additions and 7 deletions

View File

@ -21,10 +21,11 @@ jobs:
if: github.event_name == 'pull_request'
run: git checkout -B ${{ github.head_ref }}
- name: set up JDK 1.8
uses: actions/setup-java@v1.4.3
- name: set up JDK 8
uses: actions/setup-java@v2
with:
java-version: 1.8
java-version: 8
distribution: "zulu"
- name: Cache Gradle dependencies
uses: actions/cache@v2
@ -49,10 +50,11 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: set up JDK 1.8
uses: actions/setup-java@v1.4.3
- name: set up JDK 8
uses: actions/setup-java@v2
with:
java-version: 1.8
java-version: 8
distribution: "zulu"
- name: Cache Gradle dependencies
uses: actions/cache@v2
@ -74,9 +76,10 @@ jobs:
# fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
# - name: Set up JDK 11
# uses: actions/setup-java@v1.4.3
# uses: actions/setup-java@v2
# with:
# java-version: 11 # Sonar requires JDK 11
# distribution: "zulu"
# - name: Cache SonarCloud packages
# uses: actions/cache@v2