Skip to content

Commit 973fdbb

Browse files
authored
Merge pull request #120 from cicirello/dependabot/github_actions/master/actions/setup-java-v2
Bump actions/setup-java from v1 to v2
2 parents 26e1df1 + 6d6e660 commit 973fdbb

File tree

4 files changed

+15
-10
lines changed

4 files changed

+15
-10
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v2
1717
- name: Set up JDK 1.11
18-
uses: actions/setup-java@v1
18+
uses: actions/setup-java@v2
1919
with:
20-
java-version: 1.11
20+
distribution: 'adopt'
21+
java-version: '11'
2122

2223
- name: Build with Maven
2324
run: mvn -B package -Pcoverage

.github/workflows/docs.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@ jobs:
1818
fetch-depth: 0
1919

2020
- name: Set up JDK 1.11
21-
uses: actions/setup-java@v1
21+
uses: actions/setup-java@v2
2222
with:
23-
java-version: 1.11
23+
distribution: 'adopt'
24+
java-version: '11'
2425

2526
- name: Build docs with Maven
2627
run: mvn javadoc:javadoc

.github/workflows/manual-deploy.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@ jobs:
1818
steps:
1919
- uses: actions/checkout@v2
2020
- name: Set up JDK 11
21-
uses: actions/setup-java@v1
21+
uses: actions/setup-java@v2
2222
with:
23-
java-version: 1.11
23+
distribution: 'adopt'
24+
java-version: '11'
2425
server-id: github
2526

2627
- name: Build with Maven

.github/workflows/maven-publish.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@ jobs:
2020
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/}
2121

2222
- name: Set up JDK 11 for deploy to OSSRH
23-
uses: actions/setup-java@v1
23+
uses: actions/setup-java@v2
2424
with:
25-
java-version: 1.11
25+
distribution: 'adopt'
26+
java-version: '11'
2627
server-id: ossrh
2728
server-username: MAVEN_USERNAME
2829
server-password: MAVEN_CENTRAL_TOKEN
@@ -43,9 +44,10 @@ jobs:
4344
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
4445

4546
- name: Set up JDK 11 for deploy to github packages
46-
uses: actions/setup-java@v1
47+
uses: actions/setup-java@v2
4748
with:
48-
java-version: 1.11
49+
distribution: 'adopt'
50+
java-version: '11'
4951
server-id: github
5052

5153
- name: Publish to GitHub Packages Apache Maven

0 commit comments

Comments
 (0)