Skip to content

Commit 322c5ce

Browse files
authored
Merge pull request #60 from xdev-software/dependabot/github_actions/actions/setup-java-v2
Bump actions/setup-java from v1 to v2
2 parents ccdd962 + 99243e5 commit 322c5ce

File tree

2 files changed

+19
-14
lines changed

2 files changed

+19
-14
lines changed

.github/workflows/develop.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v2
1616

17-
- name: Set up JDK 1.8
18-
uses: actions/setup-java@v1
17+
- name: Set up JDK 8
18+
uses: actions/setup-java@v2
1919
with:
20-
java-version: 1.8
20+
java-version: '8'
21+
distribution: 'adopt'
2122

2223
- name: Cache local Maven repository
2324
uses: actions/cache@v2

.github/workflows/master.yml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ jobs:
1010
steps:
1111
- uses: actions/checkout@v2
1212

13-
- name: Set up JDK 1.8
14-
uses: actions/setup-java@v1
13+
- name: Set up JDK 8
14+
uses: actions/setup-java@v2
1515
with:
16-
java-version: 1.8
16+
java-version: '8'
17+
distribution: 'adopt'
1718

1819
- name: Cache local Maven repository
1920
uses: actions/cache@v2
@@ -116,10 +117,11 @@ jobs:
116117
git config --global user.name "GitHub Actions"
117118
git pull
118119
119-
- name: Set up JDK 1.8 Apache Maven Central
120-
uses: actions/setup-java@v1
120+
- name: Set up JDK 8 Apache Maven Central
121+
uses: actions/setup-java@v2
121122
with: # running setup-java again overwrites the settings.xml
122-
java-version: 1.8
123+
java-version: '8'
124+
distribution: 'adopt'
123125
server-id: ossrh
124126
server-username: MAVEN_CENTRAL_USERNAME
125127
server-password: MAVEN_CENTRAL_TOKEN
@@ -146,10 +148,11 @@ jobs:
146148
git config --global user.name "GitHub Actions"
147149
git pull
148150
149-
- name: Set up JDK 1.8
150-
uses: actions/setup-java@v1
151+
- name: Set up JDK 8
152+
uses: actions/setup-java@v2
151153
with:
152-
java-version: 1.8
154+
java-version: '8'
155+
distribution: 'adopt'
153156

154157
- name: Build for Vaadin Directory
155158
run: mvn -B install -Pdirectory
@@ -192,9 +195,10 @@ jobs:
192195
git pull
193196
194197
- name: Setup - Java
195-
uses: actions/setup-java@v1
198+
uses: actions/setup-java@v2
196199
with:
197-
java-version: 1.8
200+
java-version: '8'
201+
distribution: 'adopt'
198202

199203
- name: Restore - Maven Cache
200204
uses: actions/cache@v1

0 commit comments

Comments
 (0)