Skip to content

Commit

Permalink
Always use Java 17 for the build
Browse files Browse the repository at this point in the history
and rely on the toolchain to force compilation and tests with other Java
versions.

I left comments to document what I think it's the semantics of those
Jenkinsfile parts
  • Loading branch information
LorenzoBettini committed Aug 10, 2024
1 parent 2bce8b6 commit 4900f56
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ pipeline {
}

tools {
jdk "temurin-jdk11-latest"
// the Java version we use to run the build (minimal requirement for Maven/Tycho)
// we force other Java versions through Maven toolchains
jdk "temurin-jdk17-latest"
jdk "temurin-jdk21-latest"
}

stages {
Expand Down Expand Up @@ -58,6 +58,7 @@ pipeline {
stage('Maven/Tycho Build & Test') {
environment {
MAVEN_OPTS = "-Xmx1500m"
// set all Java versions needed by our toolchains.xml
JAVA_HOME_11_X64 = tool(type:'jdk', name:'temurin-jdk11-latest')
JAVA_HOME_17_X64 = tool(type:'jdk', name:'temurin-jdk17-latest')
JAVA_HOME_21_X64 = tool(type:'jdk', name:'temurin-jdk21-latest')
Expand Down

0 comments on commit 4900f56

Please sign in to comment.