Skip to content

Commit 89b06cb

Browse files
cushongoogle-java-format Team
authored andcommitted
Update to setup-java v2, and use adopt builds
https://github.com/actions/setup-java/blob/main/docs/switching-to-v2.md PiperOrigin-RevId: 384750269
1 parent 135f5e9 commit 89b06cb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,10 @@ jobs:
6060
restore-keys: |
6161
${{ runner.os }}-maven-
6262
- name: 'Set up JDK ${{ matrix.java }}'
63-
uses: actions/setup-java@v1
63+
uses: actions/setup-java@v2
6464
with:
6565
java-version: ${{ matrix.java }}
66+
distribution: 'adopt'
6667
- name: 'Install'
6768
shell: bash
6869
run: mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
@@ -86,9 +87,10 @@ jobs:
8687
restore-keys: |
8788
${{ runner.os }}-maven-
8889
- name: 'Set up JDK 15'
89-
uses: actions/setup-java@v1
90+
uses: actions/setup-java@v2
9091
with:
9192
java-version: 15
93+
distribution: 'adopt'
9294
server-id: sonatype-nexus-snapshots
9395
server-username: CI_DEPLOY_USERNAME
9496
server-password: CI_DEPLOY_PASSWORD

0 commit comments

Comments
 (0)