Skip to content

Commit 7224ec7

Browse files
committed
Sets Java 21 as the minimum version
1 parent 24de431 commit 7224ec7

7 files changed

Lines changed: 17 additions & 17 deletions

.github/workflows/java-build-template.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
strategy:
2323
matrix:
2424
os: [ubuntu-22.04, ubuntu-24.04]
25-
java: [17, 21, 25]
25+
java: [21, 25]
2626
steps:
2727
- name: Checkout repository
2828
uses: actions/checkout@v6
@@ -50,7 +50,7 @@ jobs:
5050
strategy:
5151
matrix:
5252
os: [macos-14, macos-15]
53-
java: [17, 21, 25]
53+
java: [21, 25]
5454
steps:
5555
- name: Checkout repository
5656
uses: actions/checkout@v6
@@ -78,7 +78,7 @@ jobs:
7878
strategy:
7979
matrix:
8080
os: [windows-2022, windows-2025]
81-
java: [17, 21, 25]
81+
java: [21, 25]
8282
steps:
8383
- name: Checkout repository
8484
uses: actions/checkout@v6

.github/workflows/java-build-with-docker-template.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
strategy:
2727
matrix:
2828
os: [ubuntu-24.04]
29-
java: [17, 21, 25]
29+
java: [21, 25]
3030
steps:
3131
- name: Checkout repository
3232
uses: actions/checkout@v6

.github/workflows/java-central-release-template.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,13 @@ jobs:
7979
uses: actions/setup-java@v5
8080
with:
8181
distribution: 'temurin'
82-
java-version: 17
82+
java-version: 21
8383
- name: Configure Maven cache
8484
uses: actions/cache@v5
8585
with:
8686
path: ~/.m2/repository
87-
key: ${{ runner.os }}-jdk-17-maven-${{ hashFiles('**/pom.xml') }}
88-
restore-keys: ${{ runner.os }}-jdk-17-maven-
87+
key: ${{ runner.os }}-jdk-21-maven-${{ hashFiles('**/pom.xml') }}
88+
restore-keys: ${{ runner.os }}-jdk-21-maven-
8989
- name: Download and install xmlstarlet
9090
working-directory: ${{ inputs.working-directory }}
9191
run: |

.github/workflows/java-duplication-template.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
uses: actions/setup-java@v5
2929
with:
3030
distribution: 'temurin'
31-
java-version: 17
31+
java-version: 21
3232
- name: Download Simian
3333
working-directory: ${{ inputs.working-directory }}
3434
env:

.github/workflows/java-github-release-template.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,13 @@ jobs:
6565
uses: actions/setup-java@v5
6666
with:
6767
distribution: 'temurin'
68-
java-version: 17
68+
java-version: 21
6969
- name: Configure Maven cache
7070
uses: actions/cache@v5
7171
with:
7272
path: ~/.m2/repository
73-
key: ${{ runner.os }}-jdk-17-maven-${{ hashFiles('**/pom.xml') }}
74-
restore-keys: ${{ runner.os }}-jdk-17-maven-
73+
key: ${{ runner.os }}-jdk-21-maven-${{ hashFiles('**/pom.xml') }}
74+
restore-keys: ${{ runner.os }}-jdk-21-maven-
7575
- name: Download and install xmlstarlet
7676
working-directory: ${{ inputs.working-directory }}
7777
run: |

.github/workflows/java-sonar-template.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ jobs:
4747
uses: actions/setup-java@v5
4848
with:
4949
distribution: 'temurin'
50-
java-version: 17
50+
java-version: 21
5151
- name: Configure Maven cache
5252
uses: actions/cache@v5
5353
with:
5454
path: ~/.m2/repository
55-
key: ubuntu-jdk-17-maven-${{ hashFiles('**/pom.xml') }}
56-
restore-keys: ubuntu-jdk-17-maven-
55+
key: ubuntu-jdk-21-maven-${{ hashFiles('**/pom.xml') }}
56+
restore-keys: ubuntu-jdk-21-maven-
5757
- name: Build Maven project
5858
working-directory: ${{ inputs.working-directory }}
5959
run: |

.github/workflows/java-sonatype-release-template.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,13 @@ jobs:
5151
uses: actions/setup-java@v5
5252
with:
5353
distribution: 'temurin'
54-
java-version: 17
54+
java-version: 21
5555
- name: Configure Maven cache
5656
uses: actions/cache@v5
5757
with:
5858
path: ~/.m2/repository
59-
key: ${{ runner.os }}-jdk-17-maven-${{ hashFiles('**/pom.xml') }}
60-
restore-keys: ${{ runner.os }}-jdk-17-maven-
59+
key: ${{ runner.os }}-jdk-21-maven-${{ hashFiles('**/pom.xml') }}
60+
restore-keys: ${{ runner.os }}-jdk-21-maven-
6161
- name: Download and install xmlstarlet
6262
working-directory: ${{ inputs.working-directory }}
6363
run: |

0 commit comments

Comments
 (0)