Bump setup-java actions to v2
MODIFY
.github/workflows/main.yml
.github/workflows/main.yml
@@ -14,9 +14,10 @@ jobs:
uses: actions/checkout@v2
- name: Setup JDK 1.8
- uses: actions/setup-java@v1
+ uses: actions/setup-java@v2
with:
- java-version: 1.8
+ java-version: 8
+ distribution: 'zulu'
- name: Build project
run: ./gradlew build --stacktrace
@@ -40,9 +41,10 @@ jobs:
uses: actions/checkout@v2
- name: Setup JDK 1.8
- uses: actions/setup-java@v1
+ uses: actions/setup-java@v2
with:
- java-version: 1.8
+ java-version: 8
+ distribution: 'zulu'
- name: Deploy snapshot
run: ./gradlew uploadArchives

Bump setup-java actions to v2