You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "Croway (via GitHub)" <gi...@apache.org> on 2026/04/13 16:52:29 UTC
[PR] Use JDK21 when deploying SNAPSHOT [camel]
Croway opened a new pull request, #22587:
URL: https://github.com/apache/camel/pull/22587
with jdk 17 the multi jar deployment for virtual threads does not work, use jdk21 instead.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Use JDK21 when deploying SNAPSHOT [camel]
Posted by "davsclaus (via GitHub)" <gi...@apache.org>.
davsclaus commented on PR #22587:
URL: https://github.com/apache/camel/pull/22587#issuecomment-4242675736
If you look inside the MANIFEST.MF of the 4.19 release you can see
```
Manifest-Version: 1.0
Created-By: Maven JAR Plugin 3.5.0
Java-Version: 17
Build-Jdk-Spec: 21
Implementation-Title: Camel :: Core Engine
Implementation-Version: 4.19.0
Implementation-Vendor: The Apache Software Foundation
```
Does that not indicate that JDK21 was used during the release
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Use JDK21 when deploying SNAPSHOT [camel]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #22587:
URL: https://github.com/apache/camel/pull/22587#issuecomment-4238215301
:star2: Thank you for your contribution to the Apache Camel project! :star2:
:robot: CI automation will test this PR automatically.
:camel: Apache Camel Committers, please review the following items:
* First-time contributors **require MANUAL approval** for the GitHub Actions to run
* You can use the command `/component-test (camel-)component-name1 (camel-)component-name2..` to request a test from the test bot although they are normally detected and executed by CI.
* You can label PRs using `skip-tests` and `test-dependents` to fine-tune the checks executed by this PR.
* Build and test logs are available in the summary page. **Only** [Apache Camel committers](https://camel.apache.org/community/team/#committers) have access to the summary.
:warning: Be careful when sharing logs. Review their contents before sharing them publicly.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Use JDK21 when deploying SNAPSHOT [camel]
Posted by "apupier (via GitHub)" <gi...@apache.org>.
apupier commented on PR #22587:
URL: https://github.com/apache/camel/pull/22587#issuecomment-4241914546
> with jdk 17 the multi jar deployment for virtual threads does not work, use jdk21 instead.
Do you mean that we must use a JDK 21+ to compile Camel source code to have virtual threads potentially used when running with JDk 21+?
If yes, it is a bit weird and mainly it means that we also need to ensure that the "release" bits are compiled with JDK21+ to have it usable. Which I'm not sure how to enforce as it is built on the local machine of the releaser.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Use JDK21 when deploying SNAPSHOT [camel]
Posted by "Croway (via GitHub)" <gi...@apache.org>.
Croway merged PR #22587:
URL: https://github.com/apache/camel/pull/22587
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Use JDK21 when deploying SNAPSHOT [camel]
Posted by "Croway (via GitHub)" <gi...@apache.org>.
Croway commented on PR #22587:
URL: https://github.com/apache/camel/pull/22587#issuecomment-4242193809
> > with jdk 17 the multi jar deployment for virtual threads does not work, use jdk21 instead.
>
> Do you mean that we must use a JDK 21+ to compile Camel source code to have virtual threads potentially used when running with JDk 21+? If yes, it is a bit weird and even more importantly it means that we also need to ensure that the "release" bits are compiled with JDK21+ to have it usable. Which I'm not sure how to enforce as it is built on the local machine of the releaser.
@apupier at the moment we are not enforcing it, but you have a good point, we should, it should be doable via the maven-enforcer-plugin.
Gregor, the release manager, always released Camel with JDK 21 (or JDK 25, since there is a profile for it) and this is the correct approach, given that the compatibility is [JDK17](https://github.com/apache/camel/blob/main/pom.xml#L113) anyway (@davsclaus @oscerd may you confirm I didn't write any blasphemy please?).
Anyway, the issue with the SNAPSHOT is that the JDK21 (virtual thread) snapshot is not released, and one spring boot test is failing when running the test suite with jdk21 since the jar is not released as expected.
I'd merge it, and we can discuss a `maven-enforcer-plugin` configuration, wdyt?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Use JDK21 when deploying SNAPSHOT [camel]
Posted by "Croway (via GitHub)" <gi...@apache.org>.
Croway commented on PR #22587:
URL: https://github.com/apache/camel/pull/22587#issuecomment-4242735719
Exactly! and it is wrong-ish, the JDK25 profile was not activated in this case. Gregor used JDK21 to build Camel most probably.
Most of the byte code target is Java 17 `Java-Version: 17`, but was built with `Build-Jdk-Spec: 21`, therefore, the Virtual Threads are enabled, but the `ScopeValue` (JDK25 profile) are not present in this release.
We should enforce the JDK used to build Camel
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org