This is an automated email from the ASF dual-hosted git repository.
jiriondrusek pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-upgrade-recipes.git
The following commit(s) were added to refs/heads/main by this push:
new f761c1c Migrate Camel 4.17 to 4.18
f761c1c is described below
commit f761c1c70a0adb7b50a5b31d955cd37c31688761
Author: Jiri Ondrusek <[email protected]>
AuthorDate: Wed Feb 11 15:01:49 2026 +0100
Migrate Camel 4.17 to 4.18
---
.../src/main/resources/META-INF/rewrite/4.18.yaml | 24 +++++
.../main/resources/META-INF/rewrite/latest.yaml | 1 +
camel-upgrade-recipes/pom.xml | 20 +++++
.../src/main/resources/META-INF/rewrite/4.18.yaml | 39 ++++++++
.../main/resources/META-INF/rewrite/latest.yaml | 1 +
.../org/apache/camel/upgrade/CamelTestUtil.java | 3 +-
.../apache/camel/upgrade/CamelUpdate418Test.java | 100 +++++++++++++++++++++
pom.xml | 4 +
release_notes.adoc | 22 +++++
9 files changed, 213 insertions(+), 1 deletion(-)
diff --git
a/camel-spring-boot-upgrade-recipes/src/main/resources/META-INF/rewrite/4.18.yaml
b/camel-spring-boot-upgrade-recipes/src/main/resources/META-INF/rewrite/4.18.yaml
new file mode 100644
index 0000000..f6a88b7
--- /dev/null
+++
b/camel-spring-boot-upgrade-recipes/src/main/resources/META-INF/rewrite/4.18.yaml
@@ -0,0 +1,24 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+---
+type: specs.openrewrite.org/v1beta/recipe
+name: org.apache.camel.upgrade.camel418.CamelSpringBootMigrationRecipe
+displayName: Migrates Camel Spring Boot applications to Camel Spring Boot 4.18
+description: Migrates Camel Spring Boot applications to Camel Spring Boot 4.18.
+recipeList:
+ - org.apache.camel.upgrade.camel417.CamelSpringBootMigrationRecipe
+ - org.apache.camel.upgrade.camel418.CamelMigrationRecipe
\ No newline at end of file
diff --git
a/camel-spring-boot-upgrade-recipes/src/main/resources/META-INF/rewrite/latest.yaml
b/camel-spring-boot-upgrade-recipes/src/main/resources/META-INF/rewrite/latest.yaml
index 53b9505..d1c8389 100644
---
a/camel-spring-boot-upgrade-recipes/src/main/resources/META-INF/rewrite/latest.yaml
+++
b/camel-spring-boot-upgrade-recipes/src/main/resources/META-INF/rewrite/latest.yaml
@@ -21,6 +21,7 @@ displayName: Migrate to Apache Camel Spring Boot
@camel-latest-version@
description: >-
Migrate applications to Apache Camel Spring Boot @camel-latest-version@ and
Spring Boot @spring-boot-version@
recipeList:
+ - org.apache.camel.upgrade.camel418.CamelMigrationRecipe
- org.apache.camel.upgrade.camel417.CamelMigrationRecipe
- org.apache.camel.upgrade.camel416.CamelMigrationRecipe
- org.apache.camel.upgrade.camel415.CamelMigrationRecipe
diff --git a/camel-upgrade-recipes/pom.xml b/camel-upgrade-recipes/pom.xml
index 58555cf..789c5e4 100644
--- a/camel-upgrade-recipes/pom.xml
+++ b/camel-upgrade-recipes/pom.xml
@@ -509,6 +509,26 @@
<outputDirectory>${rewrite-tmp-classpath}</outputDirectory>
</artifactItem>
+ <!-- 4.17 -->
+ <artifactItem>
+ <groupId>org.apache.camel</groupId>
+ <artifactId>camel-qdrant</artifactId>
+ <version>${camel4.17-version}</version>
+
<outputDirectory>${rewrite-tmp-classpath}</outputDirectory>
+ </artifactItem>
+ <artifactItem>
+ <groupId>org.apache.camel</groupId>
+ <artifactId>camel-tahu</artifactId>
+ <version>${camel4.17-version}</version>
+
<outputDirectory>${rewrite-tmp-classpath}</outputDirectory>
+ </artifactItem>
+ <dependency>
+ <groupId>org.eclipse.tahu</groupId>
+ <artifactId>tahu-host</artifactId>
+ <version>${tahu-version}</version>
+
<outputDirectory>${rewrite-tmp-classpath}</outputDirectory>
+ </dependency>
+
<!-- Apache HTTP Client -->
<artifactItem>
<groupId>org.apache.httpcomponents</groupId>
diff --git
a/camel-upgrade-recipes/src/main/resources/META-INF/rewrite/4.18.yaml
b/camel-upgrade-recipes/src/main/resources/META-INF/rewrite/4.18.yaml
new file mode 100644
index 0000000..c57d229
--- /dev/null
+++ b/camel-upgrade-recipes/src/main/resources/META-INF/rewrite/4.18.yaml
@@ -0,0 +1,39 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+#####
+# Rules coming from
https://camel.apache.org/manual/camel-4x-upgrade-guide-4_18.html
+#####
+
+#####
+# Update the Camel project from 4.17 to 4.18
+#####
+---
+type: specs.openrewrite.org/v1beta/recipe
+name: org.apache.camel.upgrade.camel418.CamelMigrationRecipe
+displayName: Migrates `camel 4.17` application to `camel 4.18`
+description: Migrates `camel 4.17` application to `camel 4.18`.
+recipeList:
+ - org.openrewrite.java.ChangeType:
+ oldFullyQualifiedTypeName:
org.apache.camel.component.qdrant.Qdrant.Headers
+ newFullyQualifiedTypeName:
org.apache.camel.component.qdrant.QdrantHeaders
+ - org.openrewrite.java.ChangeType:
+ oldFullyQualifiedTypeName:
org.apache.camel.component.tahu.handlers.TahuHostApplicationEventHandler
+ newFullyQualifiedTypeName:
org.apache.camel.component.tahu.handlers.MultiTahuHostApplicationEventHandler
+ - org.openrewrite.java.ChangeType:
+ oldFullyQualifiedTypeName:
org.eclipse.tahu.host.api.HostApplicationEventHandler
+ newFullyQualifiedTypeName:
org.eclipse.tahu.host.api.MultiHostApplicationEventHandler
diff --git
a/camel-upgrade-recipes/src/main/resources/META-INF/rewrite/latest.yaml
b/camel-upgrade-recipes/src/main/resources/META-INF/rewrite/latest.yaml
index 1f07147..862670e 100644
--- a/camel-upgrade-recipes/src/main/resources/META-INF/rewrite/latest.yaml
+++ b/camel-upgrade-recipes/src/main/resources/META-INF/rewrite/latest.yaml
@@ -20,6 +20,7 @@ name: org.apache.camel.upgrade.CamelMigrationRecipe
displayName: Migrate to @camel-latest-version@
description: Migrates Apache Camel application to @camel-latest-version@.
recipeList:
+ - org.apache.camel.upgrade.camel418.CamelMigrationRecipe
- org.apache.camel.upgrade.camel417.CamelMigrationRecipe
- org.apache.camel.upgrade.camel416.CamelMigrationRecipe
- org.apache.camel.upgrade.camel415.CamelMigrationRecipe
diff --git
a/camel-upgrade-recipes/src/test/java/org/apache/camel/upgrade/CamelTestUtil.java
b/camel-upgrade-recipes/src/test/java/org/apache/camel/upgrade/CamelTestUtil.java
index 4fa68c5..6050e56 100644
---
a/camel-upgrade-recipes/src/test/java/org/apache/camel/upgrade/CamelTestUtil.java
+++
b/camel-upgrade-recipes/src/test/java/org/apache/camel/upgrade/CamelTestUtil.java
@@ -52,7 +52,8 @@ public class CamelTestUtil {
v4_14(4, 14, 0),
v4_15(4, 15, 0),
v4_16(4, 16, 0),
- v4_17(4, 17, 0);
+ v4_17(4, 17, 0),
+ v4_18(4, 18, 0);
private int major;
private int minor;
diff --git
a/camel-upgrade-recipes/src/test/java/org/apache/camel/upgrade/CamelUpdate418Test.java
b/camel-upgrade-recipes/src/test/java/org/apache/camel/upgrade/CamelUpdate418Test.java
new file mode 100644
index 0000000..2aaa83e
--- /dev/null
+++
b/camel-upgrade-recipes/src/test/java/org/apache/camel/upgrade/CamelUpdate418Test.java
@@ -0,0 +1,100 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.upgrade;
+
+import org.junit.jupiter.api.Test;
+import org.openrewrite.DocumentExample;
+import org.openrewrite.test.RecipeSpec;
+import org.openrewrite.test.RewriteTest;
+import org.openrewrite.test.TypeValidation;
+
+import static org.openrewrite.java.Assertions.java;
+
+//class has to stay public, because test is extended in project quarkus-updates
+public class CamelUpdate418Test implements RewriteTest {
+
+ @Override
+ public void defaults(RecipeSpec spec) {
+ CamelTestUtil.recipe(spec, CamelTestUtil.CamelVersion.v4_18)
+
.parser(CamelTestUtil.parserFromClasspath(CamelTestUtil.CamelVersion.v4_17,
+ "camel-core-model", "camel-api", "camel-qdrant",
"camel-tahu", "tahu-host"))
+ .typeValidationOptions(TypeValidation.none());
+ }
+
+ /**
+ * <a
href="https://camel.apache.org/manual/camel-4x-upgrade-guide-4_18.html#_camel_qdrant">camel-qdrant
changes</a>
+ */
+ @DocumentExample
+ @Test
+ void qdrantHeadersChange() {
+ //language=java
+ rewriteRun(java(
+ """
+ import org.apache.camel.component.qdrant.Qdrant.Headers;
+
+ public class QdrantTest {
+
+ public void test() {
+ Headers headers = null;
+ }
+ }
+ """,
+ """
+ import org.apache.camel.component.qdrant.QdrantHeaders;
+
+ public class QdrantTest {
+
+ public void test() {
+ QdrantHeaders headers = null;
+ }
+ }
+ """));
+ }
+
+ /**
+ * <a
href="https://camel.apache.org/manual/camel-4x-upgrade-guide-4_18.html#_camel_tahu">camel-tahu
changes</a>
+ */
+ @Test
+ void tahuChange() {
+ //language=java
+ rewriteRun(java(
+ """
+ import
org.apache.camel.component.tahu.handlers.TahuHostApplicationEventHandler;
+ import org.eclipse.tahu.host.api.HostApplicationEventHandler;
+
+ public class TahuTest {
+
+ public void test() {
+ HostApplicationEventHandler h1 = null;
+ TahuHostApplicationEventHandler h2 = null;
+ }
+ }
+ """,
+ """
+ import
org.apache.camel.component.tahu.handlers.MultiTahuHostApplicationEventHandler;
+ import
org.eclipse.tahu.host.api.MultiHostApplicationEventHandler;
+
+ public class TahuTest {
+
+ public void test() {
+ MultiHostApplicationEventHandler h1 = null;
+ MultiTahuHostApplicationEventHandler h2 = null;
+ }
+ }
+ """));
+ }
+}
diff --git a/pom.xml b/pom.xml
index f0de647..83eb796 100644
--- a/pom.xml
+++ b/pom.xml
@@ -102,6 +102,7 @@
<camel4.10-version>4.10.0</camel4.10-version>
<camel4.12-version>4.12.0</camel4.12-version>
<camel4.14-version>4.14.0</camel4.14-version>
+ <camel4.17-version>4.17.0</camel4.17-version>
<camel4.10-lts-version>4.10.6</camel4.10-lts-version>
<camel-latest-version>4.14.0</camel-latest-version>
@@ -109,6 +110,9 @@
<camel-version>${project.version}</camel-version>
<camel-spring-boot-version>${project.version}</camel-spring-boot-version>
+ <!-- other versions used by the tests -->
+ <tahu-version>1.0.18</tahu-version>
+
<!-- versions for camel-spring-boot -->
<spring-boot-version>3.5.6</spring-boot-version>
<springframework-version>6.2.11</springframework-version>
diff --git a/release_notes.adoc b/release_notes.adoc
index 803d8a7..08f6a63 100644
--- a/release_notes.adoc
+++ b/release_notes.adoc
@@ -1,5 +1,27 @@
= Camel Upgrade Recipes - Release notes
+== 4.18.0
+
+=== Summary
+
+This is a release supporting Camel, Camel Quarkus and Camel Spring Boot 4.18.0
with the required upgrade recipes (described by the
https://camel.apache.org/manual/camel-4x-upgrade-guide-4_17.html[migration
guide]).
+
+=== Migration coverage
+
+The following table lists migration topics and indicates the level of coverage
(full, partial, or not covered), along with additional comments.
+
+[%autowidth,stripes=hover]
+|===
+| Migration | Coverage | Comment
+|
https://camel.apache.org/manual/camel-4x-upgrade-guide-4_18.html#_camel_simple[camel-simple]
| ❌ None | Not supported by the migration tool.
+|
https://camel.apache.org/manual/camel-4x-upgrade-guide-4_18.html#_camel_file[camel-file]
| ❌ None | Not supported by the migration tool.
+|
https://camel.apache.org/manual/camel-4x-upgrade-guide-4_18.html#_camel_docling[camel-docling]
| ❌ None | Not supported by the migration tool.
+|
https://camel.apache.org/manual/camel-4x-upgrade-guide-4_18.html#_camel_qdrant[camel-qdrant]
| ✅ Full todo | Automatically migrated.
+|
https://camel.apache.org/manual/camel-4x-upgrade-guide-4_18.html#_camel_tahu[camel-tahu]
| ⚠️ Partial | Tool renames handlers to MultiHostApplicationEventHandler.
Other API changes are not covered.
+|
https://camel.apache.org/manual/camel-4x-upgrade-guide-4_18.html#_camel_platform_http_vertx_and_rest_dsl_contract_first[camel-platform-http-vertx
and Rest DSL contract-first] | ❌ None | Not supported by the migration tool.
+|
https://camel.apache.org/manual/camel-4x-upgrade-guide-4_18.html#_component_deprecation[Component
deprecation] | ❌ None | Not supported by the migration tool.
+|===
+
== 4.17.0
=== Summary