This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
The following commit(s) were added to refs/heads/main by this push:
new 978331999 ci: give JBang the Java 21 the Camel launcher needs, and
keep the integration tests on 17 (#3091)
978331999 is described below
commit 9783319993136158e62da38b40ade41203b8d3e0
Author: Claus Ibsen <[email protected]>
AuthorDate: Tue Oct 6 21:53:09 2026 +0200
ci: give JBang the Java 21 the Camel launcher needs, and keep the
integration tests on 17 (#3091)
* ci: run the integration tests on Java 21, which the Camel JBang launcher
needs
The tests run jbang camel@apache/camel, whose launcher declares //JAVA 21+
since
CAMEL-23112. With JDK 17 set up, JBang 0.142.0 fails with "No suitable JDK
was
found for requested version: 21". The Maven builds stay on 17: Camel is
still
compiled for Java 17.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01STT6whBgK1AqsSsUKrnE8m
* ci: install Java 21 beside 17 instead of switching to it: JiraIT times
out on 21
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01STT6whBgK1AqsSsUKrnE8m
* ci: link the installed Java 21 into JBang: it does not find the one
setup-java installs
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01STT6whBgK1AqsSsUKrnE8m
---------
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
---
.github/workflows/integration-tests.yaml | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/integration-tests.yaml
b/.github/workflows/integration-tests.yaml
index b7ae9123e..8f0cb59b0 100644
--- a/.github/workflows/integration-tests.yaml
+++ b/.github/workflows/integration-tests.yaml
@@ -56,7 +56,12 @@ jobs:
uses: actions/setup-java@de7274f081f381c8f8158605e0321c36c376e2e6 #
v6.0.1
with:
distribution: 'temurin'
- java-version: 17
+ # 21 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 (JiraIT times out on 21)
+ java-version: |
+ 21
+ 17
cache: 'maven'
- name: Build Kamelet libraries
run: |
@@ -71,6 +76,9 @@ jobs:
curl -s "https://get.sdkman.io" | bash
source "/home/runner/.sdkman/bin/sdkman-init.sh"
sdk install jbang
+
+ # the Camel JBang launcher needs Java 21: link the one setup-java
installed, so JBang does not download one
+ jbang jdk install 21 "$JAVA_HOME_21_X64"
jbang trust add https://github.com/citrusframework/citrus/
jbang trust add https://github.com/apache/camel/