This is an automated email from the ASF dual-hosted git repository.

reschke pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git


The following commit(s) were added to refs/heads/trunk by this push:
     new c1501d169a OAK-11952: Bump up minimal Java version to 17 (#2697)
c1501d169a is described below

commit c1501d169ae2d44993b67f24e77df133c6780c70
Author: Julian Reschke <[email protected]>
AuthorDate: Thu Mar 5 13:47:06 2026 +0100

    OAK-11952: Bump up minimal Java version to 17 (#2697)
    
    * OAK-11952: Bump up minimal Java version to 17 - wip
    
    * OAK-11952: Bump up minimal Java version to 17
    
    * OAK-11952: Bump up minimal Java version to 17 - build.yml
---
 .github/workflows/build.yml | 4 ++--
 Jenkinsfile                 | 4 ++--
 oak-parent/pom.xml          | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 0001628637..d06d5218d3 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -30,10 +30,10 @@ jobs:
     steps:
       - name: Git clone
         uses: actions/checkout@v4
-      - name: Set up JDK 11
+      - name: Set up JDK 17
         uses: actions/setup-java@v4
         with:
-          java-version: 11
+          java-version: 17
           distribution: temurin
           cache: maven
           server-id: apache.snapshots.https # Value of the 
distributionManagement/repository/id field of the pom.xml
diff --git a/Jenkinsfile b/Jenkinsfile
index e7163068b4..a84de9cd91 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -43,7 +43,7 @@ def buildModule(moduleSpec) {
     }
     stage(moduleSpec) {
         node(label: 'ubuntu') {
-            def JAVA_JDK_11=tool name: 'jdk_11_latest', type: 
'hudson.model.JDK'
+            def JAVA_JDK_17=tool name: 'jdk_17_latest', type: 
'hudson.model.JDK'
             def MAVEN_3_LATEST=tool name: 'maven_3_latest', type: 
'hudson.tasks.Maven$MavenInstallation'
             def MAVEN_CMD = "mvn --batch-mode 
-Dmaven.repo.local=${env.HOME}/maven-repositories/${env.EXECUTOR_NUMBER}"
             def MONGODB_SUFFIX = sh(script: 'openssl rand -hex 4', 
returnStdout: true).trim()
@@ -56,7 +56,7 @@ def buildModule(moduleSpec) {
             '''
             timeout(70) {
                 checkout scm
-                
withEnv(["Path+JDK=$JAVA_JDK_11/bin","Path+MAVEN=$MAVEN_3_LATEST/bin","JAVA_HOME=$JAVA_JDK_11","MAVEN_OPTS=-Xmx1536M"])
 {
+                
withEnv(["Path+JDK=$JAVA_JDK_17/bin","Path+MAVEN=$MAVEN_3_LATEST/bin","JAVA_HOME=$JAVA_JDK_17","MAVEN_OPTS=-Xmx1536M"])
 {
                     sh '''
                     echo "MAVEN_OPTS is ${MAVEN_OPTS}"
                     '''
diff --git a/oak-parent/pom.xml b/oak-parent/pom.xml
index d9bd6faff2..5b4036a37e 100644
--- a/oak-parent/pom.xml
+++ b/oak-parent/pom.xml
@@ -72,7 +72,7 @@
     <netty.version>4.1.131.Final</netty.version>
     <aws.sdk.version>2.34.1</aws.sdk.version>
     <!-- determines the bytecode version (i.e. the minimum JRE required to run 
the build artifact) -->
-    <javaTargetVersion>11</javaTargetVersion>
+    <javaTargetVersion>17</javaTargetVersion>
     <maven.compiler.release>${javaTargetVersion}</maven.compiler.release>
     <maven.compiler.target>${javaTargetVersion}</maven.compiler.target>
     <minimalJavaBuildVersion>${javaTargetVersion}</minimalJavaBuildVersion>

Reply via email to