Skip to content

Commit

Permalink
Make Java 21 the primary JVM to execute the maven build
Browse files Browse the repository at this point in the history
Java 21 is the next LTS and projects are allowed to use Java 21 in this
release, therefore it should become the new primary Java version used to
execute the build.

This also will allow us to catch any possible issues with Java 21 used
as build VM.
  • Loading branch information
laeubi committed Mar 20, 2024
1 parent 23b3c8b commit 6254e60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/mavenBuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,12 @@ jobs:
8
11
17
21
mvn-toolchain-id: |
JavaSE-1.8
JavaSE-11
JavaSE-17
JavaSE-21
distribution: 'temurin'
cache: maven
- name: Set up Maven
Expand Down
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pipeline {
}
tools {
maven 'apache-maven-latest'
jdk 'temurin-jdk17-latest'
jdk 'temurin-jdk21-latest'
}
stages {
stage('initialize PGP') {
Expand Down

0 comments on commit 6254e60

Please sign in to comment.