feature: build with Java 17 (#2331)

This commit is contained in:
Robert Volkmann
2022-11-30 18:02:38 +01:00
committed by GitHub
parent d20993a9f8
commit 37bfecce30
3 changed files with 14 additions and 17 deletions
+8 -8
View File
@@ -39,7 +39,7 @@ jobs:
# This Workflow Job will build this project and run Sonar analysis using JDK 11.0.3
build-and-analyze:
name: Build and Run Sonar analysis on JDK 11.0.3
name: Build and Run Sonar analysis on JDK 17
runs-on: ubuntu-20.04
steps:
@@ -49,11 +49,11 @@ jobs:
# Disabling shallow clone for improving relevancy of SonarQube reporting
fetch-depth: 0
- name: Set up JDK 11.0.3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 11.0.3
distribution: 'zulu'
java-version: '17'
distribution: 'temurin'
cache: 'maven'
# Cache Sonar packages which as used to run anaylysis and collect metrics
@@ -79,18 +79,18 @@ jobs:
# This Workflow Job is going to build the project on the latest stable JDK 11
build:
name: Build and Test on JDK 11
name: Build and Test on JDK 17
runs-on: ubuntu-20.04
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Set up JDK 11 (Latest)
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 11
distribution: 'zulu'
java-version: '17'
distribution: 'temurin'
cache: 'maven'
# Some tests need screen access
+4 -7
View File
@@ -34,21 +34,18 @@ on:
jobs:
build:
name: Build JDP
name: Build on JDK 17
runs-on: ubuntu-20.04
strategy:
matrix:
java-version: [ 11.0.3, 11 ]
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Set up JDK ${{ matrix.java-version }}
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java-version }}
distribution: 'zulu'
java-version: '17'
distribution: 'temurin'
cache: 'maven'
# Some tests need screen access