Skip to content

Commit

Permalink
Upgrade actions/setup-java to v2 (#506 / #507)
Browse files Browse the repository at this point in the history
Upgrades all jobs to use actions/setup-java v2 and sets AdoptOpenJDK
as the default distribution.

Closes: #506
PR: #507
  • Loading branch information
beatngu13 committed Aug 11, 2021
1 parent d6536e2 commit d75500b
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,10 @@ jobs:
- name: Check out repo
uses: actions/checkout@v2
- name: Set up Java
uses: actions/setup-java@v1
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java }}
distribution: adopt
- name: Cache Gradle
uses: actions/cache@v2
with:
Expand All @@ -90,9 +91,10 @@ jobs:
# Sonar needs the whole Git history for issue assignment
fetch-depth: 0
- name: Set up Java
uses: actions/setup-java@v1
uses: actions/setup-java@v2
with:
java-version: 11
distribution: adopt
- name: Cache Gradle
uses: actions/cache@v2
with:
Expand Down Expand Up @@ -137,9 +139,10 @@ jobs:
- name: Check out repo
uses: actions/checkout@v2
- name: Set up Java
uses: actions/setup-java@v1
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java }}
distribution: adopt
- name: Cache Gradle
uses: actions/cache@v2
with:
Expand Down Expand Up @@ -218,9 +221,10 @@ jobs:
# Shipkit needs the whole Git history for changelog generation
fetch-depth: 0
- name: Set up Java
uses: actions/setup-java@v1
uses: actions/setup-java@v2
with:
java-version: 8
distribution: adopt
- name: Perform release
uses: eskatos/gradle-command-action@v1
env:
Expand Down

0 comments on commit d75500b

Please sign in to comment.