This is an automated email from the ASF dual-hosted git repository. apupier pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit f954cde614c6f92d76b063f256704bbb7899b3b8 Author: Aurélien Pupier <[email protected]> AuthorDate: Mon Oct 19 16:25:30 2026 +0200 ci: build and release with Java 21 Camel core now requires Java 21, so CI, release and snapshot deployment must run on a Java 21 JDK instead of Java 17. - GitHub Actions (ci-build build and deploy jobs, validate, java-tests, main-push-regen, generate-sbom-main): setup-java version 17 -> 21 - integration-tests: the default JDK for the Maven build and the Citrus tests is now 21 (JDK 25 is still installed for the Camel JBang launcher); comments updated accordingly - jitpack.yml: openjdk17 -> openjdk21 - Jenkinsfile.deploy and Jenkinsfile.ppc64le: default JDK_NAME jdk_17_latest -> jdk_21_latest Co-authored-by: IBM Bob 2.2.1 Signed-off-by: Aurélien Pupier <[email protected]> --- .github/workflows/ci-build.yml | 4 ++-- .github/workflows/generate-sbom-main.yml | 2 +- .github/workflows/integration-tests.yaml | 8 ++++---- .github/workflows/java-tests.yaml | 2 +- .github/workflows/main-push-regen.yaml | 2 +- .github/workflows/validate.yaml | 2 +- Jenkinsfile.deploy | 2 +- Jenkinsfile.ppc64le | 2 +- jitpack.yml | 2 +- 9 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index e0a8e6c57..3524b5732 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -59,7 +59,7 @@ jobs: uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0 with: distribution: 'temurin' - java-version: 17 + java-version: 21 cache: 'maven' - name: Build camel-kamelets run: ./mvnw -V -ntp clean install @@ -87,7 +87,7 @@ jobs: uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0 with: distribution: 'temurin' - java-version: 17 + java-version: 21 - name: Deploy to ASF Snapshots Repository # Deploy both artifacts and sources (maybe required by Camel K) run: | diff --git a/.github/workflows/generate-sbom-main.yml b/.github/workflows/generate-sbom-main.yml index 3eedf9552..f9e7b04a2 100644 --- a/.github/workflows/generate-sbom-main.yml +++ b/.github/workflows/generate-sbom-main.yml @@ -34,7 +34,7 @@ jobs: timeout-minutes: 30 strategy: matrix: - java: [ '17' ] + java: [ '21' ] steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: diff --git a/.github/workflows/integration-tests.yaml b/.github/workflows/integration-tests.yaml index bdd3d693f..d4144871e 100644 --- a/.github/workflows/integration-tests.yaml +++ b/.github/workflows/integration-tests.yaml @@ -56,12 +56,12 @@ jobs: uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0 with: distribution: 'temurin' - # 25 for the Camel JBang launcher the tests run (//JAVA 21+ since CAMEL-23112), linked into JBang below instead - # of downloaded (that download fails now and then); 17, listed last, stays the default for the Maven build and - # the Citrus tests. With the Camel apps on 21 JiraIT failed in every run; it passed when JBang downloaded 27 + # 25 for the Camel JBang launcher the tests run, linked into JBang below instead of downloaded (that download + # fails now and then); 21, listed last, stays the default for the Maven build (the Java baseline) and the Citrus + # tests. With the Camel apps on 21 JiraIT failed in every run; it passed when JBang downloaded 27 java-version: | 25 - 17 + 21 cache: 'maven' - name: Build Kamelet libraries run: | diff --git a/.github/workflows/java-tests.yaml b/.github/workflows/java-tests.yaml index b90697d56..0b41659e9 100644 --- a/.github/workflows/java-tests.yaml +++ b/.github/workflows/java-tests.yaml @@ -46,7 +46,7 @@ jobs: uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0 with: distribution: 'temurin' - java-version: 17 + java-version: 21 cache: 'maven' - name: Build catalog 1st Run run: ./mvnw clean install -DskipTests -DskipITs diff --git a/.github/workflows/main-push-regen.yaml b/.github/workflows/main-push-regen.yaml index fb047545e..5691e9952 100644 --- a/.github/workflows/main-push-regen.yaml +++ b/.github/workflows/main-push-regen.yaml @@ -45,7 +45,7 @@ jobs: uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0 with: distribution: 'temurin' - java-version: 17 + java-version: 21 cache: 'maven' - name: Build catalog 1st Run run: ./mvnw clean install -DskipTests diff --git a/.github/workflows/validate.yaml b/.github/workflows/validate.yaml index 2a335448d..b22312075 100644 --- a/.github/workflows/validate.yaml +++ b/.github/workflows/validate.yaml @@ -54,7 +54,7 @@ jobs: uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0 with: distribution: 'temurin' - java-version: 17 + java-version: 21 cache: 'maven' - name: Run Validator run: | diff --git a/Jenkinsfile.deploy b/Jenkinsfile.deploy index 76714d120..c79843646 100644 --- a/Jenkinsfile.deploy +++ b/Jenkinsfile.deploy @@ -19,7 +19,7 @@ def LOCAL_REPOSITORY = env.LOCAL_REPOSITORY ?: '/home/jenkins/jenkins-slave/maven-repositories/0' def AGENT_LABEL = env.AGENT_LABEL ?: 'ubuntu' -def JDK_NAME = env.JDK_NAME ?: 'jdk_17_latest' +def JDK_NAME = env.JDK_NAME ?: 'jdk_21_latest' def MAVEN_PARAMS = '-U -B -e -fae -V -Dmaven.repo.local=/home/jenkins/.m2/repository -Dmaven.compiler.fork=true' diff --git a/Jenkinsfile.ppc64le b/Jenkinsfile.ppc64le index 9bc4c280c..3c7c9619e 100644 --- a/Jenkinsfile.ppc64le +++ b/Jenkinsfile.ppc64le @@ -19,7 +19,7 @@ def LOCAL_REPOSITORY = env.LOCAL_REPOSITORY ?: '/home/jenkins/jenkins-slave/maven-repositories/0' def AGENT_LABEL = env.AGENT_LABEL ?: 'power9' -def JDK_NAME = env.JDK_NAME ?: 'jdk_17_latest' +def JDK_NAME = env.JDK_NAME ?: 'jdk_21_latest' def MAVEN_PARAMS = '-U -B -e -fae -V -Dmaven.repo.local=/home/jenkins/.m2/repository -Dmaven.compiler.fork=true' diff --git a/jitpack.yml b/jitpack.yml index efde7bf25..727c9abd3 100644 --- a/jitpack.yml +++ b/jitpack.yml @@ -1,2 +1,2 @@ jdk: - - openjdk17 + - openjdk21
