Skip to content

Commit d949871

Browse files
Update github actions to use JDK8 for build and JDK17 for sonarcloud scan
1 parent b6b6b96 commit d949871

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/github-actions-build.yml

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

14-
- name: Set up JDK 11
14+
- name: Set up JDK 8
1515
uses: actions/setup-java@v2
1616
with:
17-
java-version: '11'
17+
java-version: '8'
1818
distribution: 'adopt'
1919

2020
- name: Cache Maven Repo
@@ -27,6 +27,12 @@ jobs:
2727
- name: Build Test and Verify
2828
run: mvn -B -U clean install -Dmaven.javadoc.skip=true -Pdisplay-versions
2929

30+
- name: Set up JDK 17
31+
uses: actions/setup-java@v2
32+
with:
33+
java-version: '17'
34+
distribution: 'adopt'
35+
3036
- name: SonarCloud Scan
3137
run: |
3238
if ["$SONAR_TOKEN" == ""]; then

0 commit comments

Comments
 (0)