Bump setup-java actions to v2

This commit is contained in:
Goooler 2022-01-28 10:01:57 +08:00
parent 010182ef80
commit 48b8f9e038
4 changed files with 13 additions and 7 deletions

View File

@ -23,9 +23,10 @@ jobs:
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- uses: actions/setup-java@v1.4.3
- uses: actions/setup-java@v2
with:
java-version: 1.8
distribution: 'zulu'
java-version: 8
- name: Build Web App
run: ./gradlew :web-app:build
- name: Upload Static Web App Artifact

View File

@ -8,8 +8,9 @@ jobs:
# Setup Java 1.8 environment for the next steps
- name: Setup Java
uses: actions/setup-java@v1
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: 15
# Check out current repository

View File

@ -10,8 +10,9 @@ jobs:
steps:
# Setup Java environment for the next steps
- name: Setup Java
uses: actions/setup-java@v1
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: 15
# Check out current repository
@ -44,8 +45,9 @@ jobs:
steps:
# Setup Java environment for the next steps
- name: Setup Java
uses: actions/setup-java@v1
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: 15
# Check out current repository
@ -92,8 +94,9 @@ jobs:
steps:
# Setup Java environment for the next steps
- name: Setup Java
uses: actions/setup-java@v1
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: 15
# Check out current repository

View File

@ -13,8 +13,9 @@ jobs:
# Setup Java environment for the next steps
- name: Setup Java
uses: actions/setup-java@v1
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: 15
# Check out current repository