Skip to content

Commit

Permalink
Migrating to Java 17 for Sonar.
Browse files Browse the repository at this point in the history
Java 11 is no longer supported.
  • Loading branch information
The4thLaw committed Feb 12, 2024
1 parent b432f36 commit 58e6b77
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/maven-for-branches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches: [ master ]

jobs:
# JDK8 build without Sonar, because Sonar requires JDK11 and we don't need to run Sonar on all JDKs anyway
# JDK8 build without Sonar, because Sonar requires JDK17 and we don't need to run Sonar on all JDKs anyway
build8:
name: Build on JDK 8

Expand Down Expand Up @@ -40,20 +40,21 @@ jobs:
run: mvn -B clean verify -DCI=true
working-directory: ./source

# JDK11 build with Sonar
build11:
name: Build on JDK 11
# JDK17 build with Sonar
build17:
name: Build on JDK 17

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Shallow clones are disabled for a better relevancy of analysis
- name: Set up JDK 11
uses: actions/setup-java@v1
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 11
java-version: 17
distribution: temurin
- name: Cache SonarCloud packages
uses: actions/cache@v1
with:
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/maven-for-pull-requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,20 @@ jobs:
run: mvn -B clean verify -DCI=true
working-directory: ./source

build11:
name: Build on JDK 11
build17:
name: Build on JDK 17

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Shallow clones are disabled for a better relevancy of analysis
- name: Set up JDK 11
uses: actions/setup-java@v1
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 11
java-version: 17
distribution: temurin
- name: Cache Maven packages
uses: actions/cache@v1
with:
Expand Down

0 comments on commit 58e6b77

Please sign in to comment.