You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2023/12/06 13:04:57 UTC

(camel) branch main updated: CAMEL-20187: Explain how to enable VT at build time (#12331)

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.git


The following commit(s) were added to refs/heads/main by this push:
     new cc66fb8138e CAMEL-20187: Explain how to enable VT at build time (#12331)
cc66fb8138e is described below

commit cc66fb8138e3c4c4d96b4e7c80d006ea0e85b9c2
Author: Nicolas Filotto <es...@users.noreply.github.com>
AuthorDate: Wed Dec 6 14:04:50 2023 +0100

    CAMEL-20187: Explain how to enable VT at build time (#12331)
---
 docs/main/modules/contributing/pages/building.adoc     | 5 +++++
 docs/main/modules/contributing/pages/index.adoc        | 5 +++++
 docs/user-manual/modules/ROOT/pages/release-guide.adoc | 2 +-
 3 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/docs/main/modules/contributing/pages/building.adoc b/docs/main/modules/contributing/pages/building.adoc
index 86d780edca8..43d9a980cb2 100644
--- a/docs/main/modules/contributing/pages/building.adoc
+++ b/docs/main/modules/contributing/pages/building.adoc
@@ -82,6 +82,11 @@ mvn clean install -Dquickly
 On Camel 4, you can also use `-Pfastinstall` to trigger a fast build, but we encourage contributors to switch to the new command.
 ====
 
+[NOTE]
+====
+On Camel 4, Virtual Threads can only be enabled by compiling with JDK 21 or greater and adding the system property `-Dcamel.threads.virtual.enabled=true` to your build command.
+====
+
 The commands above will build Camel in a quick way: skipping build optional artifacts and running tests. In most modern computers, this should complete in at most 30 minutes (usually much less, for newer hardware).
 
 
diff --git a/docs/main/modules/contributing/pages/index.adoc b/docs/main/modules/contributing/pages/index.adoc
index d1aa0969398..797dc63c6c0 100644
--- a/docs/main/modules/contributing/pages/index.adoc
+++ b/docs/main/modules/contributing/pages/index.adoc
@@ -165,6 +165,11 @@ mvn clean install -Dquickly
 On Camel 4, you can also use `-Pfastinstall` to trigger a fast build, but we encourage contributors to switch to the new command.
 ====
 
+[NOTE]
+====
+On Camel 4, Virtual Threads can only be enabled by compiling with JDK 21 or greater and adding the system property `-Dcamel.threads.virtual.enabled=true` to your build command.
+====
+
 You can find more details about building Camel on the xref:contributing:building.adoc[Building Camel] page.
 
 **Tips**: if you aren’t able to build a component after adding some new URI parameters due to `Empty doc for option: [OPTION], parent options: <null>` please make sure that you either added properly javadoc for get/set method or description in `@UriPath` annotation.
diff --git a/docs/user-manual/modules/ROOT/pages/release-guide.adoc b/docs/user-manual/modules/ROOT/pages/release-guide.adoc
index a37953a4d53..8328e9aeec8 100644
--- a/docs/user-manual/modules/ROOT/pages/release-guide.adoc
+++ b/docs/user-manual/modules/ROOT/pages/release-guide.adoc
@@ -16,7 +16,7 @@ ApacheCon for instance).
 * https://github.com/takari/maven-wrapper[Maven Wrapper] is used and bundled with Camel 2.21 onwards and should be used
 for building the release.
 * You may want to get familiar with the release settings in the parent Apache POM.
-* Make sure you are using Java 1.8 for Apache Camel 2.18.0 and later.
+* Make sure you are using Java 11 for Apache Camel 3 and Java 21 for Apache Camel 4.
 
 [[ReleaseGuide-MavenSetup]]
 == Maven Setup