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

commit bd47e77d5bae9c8d8802880837155e9bbad53063
Author: croway <[email protected]>
AuthorDate: Tue Nov 3 15:58:31 2026 +0100

    Add Camel 4.22 LTS aggregate recipes
    
    Camel 4.22.x is the current LTS line (4.22.2, EOL 2027-08-10), but since
    latest.yaml moved to 4.23 no recipe set a project to 4.22.x. Add the 4.22
    counterparts of the 4.18 LTS aggregates:
    
    - Camel422LTSMigrationRecipe (camel-upgrade-recipes 4.22LTS.yaml): the
      version recipes up to camel422, then the 4.22.1 and 4.22.2 patch recipes,
      and the Camel version bumps to the new camel4.22-lts-version (4.22.2).
    - CamelSpringBoot422LTSMigrationRecipe (camel-spring-boot-upgrade-recipes
      4.22LTS.yaml): the same chain through 
camel422.CamelSpringBootMigrationRecipe,
      with the target-version bumps first as in latest.yaml. Camel Spring Boot
      4.22.x is on the same Spring Boot 4.1.x line as the latest release, so the
      Spring targets are shared with latest.yaml.
    
    Tests: CamelUpdate422LtsTestSuite runs the 4.0 to 4.22.2 tests against the
    core aggregate, and CamelUpdate422LtsVersionTest checks the 4.22.2 target.
    CamelSpringBoot422LtsVersionTest checks the camel-spring-boot BOM (property
    and literal) and parent targets, and that Spring Boot 3.5 moves to the 4.1.x
    line. It fails once the shared Spring Boot target leaves that line, which is
    when the 4.22 LTS aggregate needs Spring targets of its own.
    
    Closes #129
---
 README.adoc                                        |  16 +-
 camel-spring-boot-upgrade-recipes/pom.xml          |   4 +-
 .../main/resources/META-INF/rewrite/4.22LTS.yaml   |  93 ++++++++
 .../CamelSpringBoot422LtsVersionTest.java          | 242 +++++++++++++++++++++
 .../main/resources/META-INF/rewrite/4.22LTS.yaml   |  61 ++++++
 .../src/main/resources/versions.properties         |   1 +
 .../org/apache/camel/upgrade/CamelTestUtil.java    |   6 +
 .../upgrade/suites/CamelUpdate422LtsTestSuite.java |  67 ++++++
 .../versions/CamelUpdate422LtsVersionTest.java     |  32 +++
 pom.xml                                            |   1 +
 release_notes.adoc                                 |   6 +
 11 files changed, 527 insertions(+), 2 deletions(-)

diff --git a/README.adoc b/README.adoc
index 164664d..7a01489 100644
--- a/README.adoc
+++ b/README.adoc
@@ -7,7 +7,7 @@ You can find the recipes in the 
src/main/resources/META-INF/rewrite directory.
 The names of the recipes correspond to the Camel version they support, 
formatted as [major].[minor].yaml. To migrate from version X.Y to version A.B, 
apply all recipes with versions greater than X.Y and less than A.B.
 For example, to migrate from version 3.8 to 4.4, you need to apply the recipes 
`*4.0.yaml*` and `*4.4.yaml*`.
 
-Special recipes `latest.yaml` and `4.10LTS.yaml` (or other lts version in the 
future) can be used for migration to the latest version.
+Special recipes `latest.yaml` and the LTS recipes (`4.10LTS.yaml`, 
`4.18LTS.yaml`, `4.22LTS.yaml`) can be used for migration to the latest 
version, or to the latest patch release of an LTS line.
 
 == How to run from cmd
 
@@ -32,6 +32,13 @@ $ mvn -U org.openrewrite.maven:rewrite-maven-plugin:run 
-Drewrite.recipeArtifact
 ```
 
 
+To upgrade to the latest version of Camel 4.22 (LTS), you can execute the 
following script:
+
+```
+$ mvn -U org.openrewrite.maven:rewrite-maven-plugin:run 
-Drewrite.recipeArtifactCoordinates=org.apache.camel.upgrade:camel-upgrade-recipes:LATEST
 -Drewrite.activeRecipes=org.apache.camel.upgrade.Camel422LTSMigrationRecipe
+```
+
+
 To upgrade a Camel Spring Boot application to the latest version:
 
 ```
@@ -46,6 +53,13 @@ $ mvn -U org.openrewrite.maven:rewrite-maven-plugin:run 
-Drewrite.recipeArtifact
 ```
 
 
+To upgrade a Camel Spring Boot application to the 4.22 LTS (Spring Boot 4.x):
+
+```
+$ mvn -U org.openrewrite.maven:rewrite-maven-plugin:run 
-Drewrite.recipeArtifactCoordinates=org.apache.camel.upgrade:camel-spring-boot-upgrade-recipes:LATEST
 
-Drewrite.activeRecipes=org.apache.camel.upgrade.CamelSpringBoot422LTSMigrationRecipe
+```
+
+
 To apply specific recipes you can use the following script:
 
 ```
diff --git a/camel-spring-boot-upgrade-recipes/pom.xml 
b/camel-spring-boot-upgrade-recipes/pom.xml
index c80a356..348d81a 100644
--- a/camel-spring-boot-upgrade-recipes/pom.xml
+++ b/camel-spring-boot-upgrade-recipes/pom.xml
@@ -35,7 +35,9 @@
         <!-- Items annotated with @sync are updated by running `mvn -f 
camel-spring-boot-upgrade-recipes cq:sync-versions -N`
              from the repository root. Run it after changing a spring-boot 
version, otherwise CI fails. -->
 
-        <!-- versions for camel-spring-boot latest, has to be kept aligned to 
the latest camel-spring-boot release -->
+        <!-- versions for camel-spring-boot latest, has to be kept aligned to 
the latest camel-spring-boot release.
+             Also the Spring targets of CamelSpringBoot422LTSMigrationRecipe, 
since camel-spring-boot 4.22.x is on the
+             same Spring Boot 4.1.x line: CamelSpringBoot422LtsVersionTest 
fails when spring-boot-version leaves it. -->
         <spring-boot-version>4.1.2</spring-boot-version>
         <springframework-version>7.0.10</springframework-version><!-- @sync 
org.springframework.boot:spring-boot-dependencies:${spring-boot-version} 
prop:spring-framework.version -->
         <spring-security-version>7.1.2</spring-security-version><!-- @sync 
org.springframework.boot:spring-boot-dependencies:${spring-boot-version} 
prop:spring-security.version -->
diff --git 
a/camel-spring-boot-upgrade-recipes/src/main/resources/META-INF/rewrite/4.22LTS.yaml
 
b/camel-spring-boot-upgrade-recipes/src/main/resources/META-INF/rewrite/4.22LTS.yaml
new file mode 100644
index 0000000..f25dd87
--- /dev/null
+++ 
b/camel-spring-boot-upgrade-recipes/src/main/resources/META-INF/rewrite/4.22LTS.yaml
@@ -0,0 +1,93 @@
+#
+# 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.CamelSpringBoot422LTSMigrationRecipe
+displayName: Migrate to Camel Spring Boot 4.22 LTS
+description: >-
+  Migrates Camel Spring Boot applications to 4.22 LTS and Spring Boot 
@spring-boot-version@.
+  This recipe aggregates all migration steps from 4.9 to 
@camel4.22-lts-version@.
+recipeList:
+  # The target-version bumps run first, as in latest.yaml, so that the version 
recipes below add
+  # new starters against the target Camel Spring Boot BOM.
+  - org.openrewrite.maven.UpgradeDependencyVersion:
+      groupId: 'org.apache.camel'
+      artifactId: '*'
+      newVersion: @camel4.22-lts-version@
+  - org.openrewrite.maven.UpgradePluginVersion:
+      groupId: 'org.apache.camel'
+      artifactId: '*'
+      newVersion: @camel4.22-lts-version@
+  - org.openrewrite.maven.UpgradeParentVersion:
+      groupId: 'org.apache.camel'
+      artifactId: '*'
+      newVersion: @camel4.22-lts-version@
+  - org.openrewrite.maven.ChangePropertyValue:
+      key: camel.version
+      newValue: @camel4.22-lts-version@
+  - org.openrewrite.maven.UpgradeDependencyVersion:
+      groupId: '*camel*'
+      artifactId: 'camel-spring-boot-bom'
+      newVersion: @camel4.22-lts-version@
+  - org.openrewrite.maven.UpgradeDependencyVersion:
+      groupId: 'org.apache.camel.springboot'
+      artifactId: '*'
+      newVersion: @camel4.22-lts-version@
+  - org.openrewrite.maven.UpgradeParentVersion:
+      groupId: 'org.apache.camel.springboot'
+      artifactId: '*'
+      newVersion: @camel4.22-lts-version@
+  # Also update property-managed BOMs. UpgradeDependencyVersion resolves the 
target
+  # version from maven-metadata.xml; when that file is absent (e.g. staging 
repos),
+  # the recipe silently no-ops on a property reference. ChangePropertyValue 
sets the
+  # value directly and does not require metadata resolution.
+  - org.openrewrite.maven.ChangePropertyValue:
+      key: camel-spring-boot.version
+      newValue: @camel4.22-lts-version@
+  - org.openrewrite.maven.ChangePropertyValue:
+      key: camel-spring-boot-version
+      newValue: @camel4.22-lts-version@
+  - org.openrewrite.maven.ChangePropertyValue:
+      key: camel.springboot.version
+      newValue: @camel4.22-lts-version@
+  - org.apache.camel.upgrade.camel422_2.CamelMigrationRecipe
+  - org.apache.camel.upgrade.camel422_1.CamelMigrationRecipe
+  - org.apache.camel.upgrade.camel422.CamelSpringBootMigrationRecipe
+  # Camel Spring Boot 4.22.x runs on the same Spring Boot line as the latest 
release, so the
+  # Spring targets are shared with latest.yaml: the Spring Boot 3 to 4 
migration chained through
+  # camel419.CamelSpringBootMigrationRecipe already moves to those versions.
+  # CamelSpringBoot422LtsVersionTest fails once the latest Spring Boot line 
moves on.
+  - org.openrewrite.maven.UpgradeDependencyVersion:
+      groupId: org.springframework.boot
+      artifactId: "*"
+      newVersion: @spring-boot-version@
+      overrideManagedVersion: false
+  - org.openrewrite.maven.ChangePropertyValue:
+      key: spring-boot-version
+      newValue: @spring-boot-version@
+  - org.openrewrite.maven.UpgradePluginVersion:
+      groupId: org.springframework.boot
+      artifactId: spring-boot-maven-plugin
+      newVersion: @spring-boot-version@
+  - org.openrewrite.maven.UpgradeDependencyVersion:
+      groupId: org.springframework
+      artifactId: "*"
+      newVersion: @springframework-version@
+  - org.openrewrite.maven.UpgradeParentVersion:
+      groupId: org.springframework.boot
+      artifactId: spring-boot-starter-parent
+      newVersion: @spring-boot-version@
diff --git 
a/camel-spring-boot-upgrade-recipes/src/test/java/org/apache/camel/upgrade/springboot/CamelSpringBoot422LtsVersionTest.java
 
b/camel-spring-boot-upgrade-recipes/src/test/java/org/apache/camel/upgrade/springboot/CamelSpringBoot422LtsVersionTest.java
new file mode 100644
index 0000000..c0c1c1e
--- /dev/null
+++ 
b/camel-spring-boot-upgrade-recipes/src/test/java/org/apache/camel/upgrade/springboot/CamelSpringBoot422LtsVersionTest.java
@@ -0,0 +1,242 @@
+/*
+ * 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.springboot;
+
+import org.junit.jupiter.api.Test;
+import org.openrewrite.DocumentExample;
+import org.openrewrite.test.RecipeSpec;
+import org.openrewrite.test.RewriteTest;
+
+import java.util.regex.Matcher;
+import java.util.regex.Pattern;
+
+import static org.junit.jupiter.api.Assertions.assertTrue;
+import static org.openrewrite.maven.Assertions.pomXml;
+
+/**
+ * Target versions of {@code CamelSpringBoot422LTSMigrationRecipe} (the 4.22 
LTS aggregate).
+ * <p>
+ * The aggregate chains {@code camel422.CamelSpringBootMigrationRecipe}, and 
through it every version
+ * recipe down to 4.9, so these tests also guard that none of them pins the 
project to the latest
+ * Camel release: {@code UpgradeDependencyVersion} never downgrades, so such a 
bump would leave the
+ * project on 4.23+ instead of 4.22.x.
+ */
+class CamelSpringBoot422LtsVersionTest implements RewriteTest {
+
+    private static final String LTS_VERSION = "4.22.2";
+
+    /**
+     * Spring Boot line of camel-spring-boot 4.22.x. The aggregate shares its 
Spring targets with
+     * {@code latest.yaml}; when the latest release moves to a newer Spring 
Boot line, the 4.22 LTS
+     * aggregate needs Spring targets of its own, and the Spring migration 
chained through
+     * {@code camel419.CamelSpringBootMigrationRecipe} must no longer pin the 
latest one.
+     */
+    private static final String SPRING_BOOT_LINE = "4.1.";
+
+    private static final Pattern SPRING_BOOT_PARENT_VERSION = Pattern.compile(
+            
"<artifactId>spring-boot-starter-parent</artifactId>\\s*<version>([^<]+)</version>");
+
+    @Override
+    public void defaults(RecipeSpec spec) {
+        
spec.recipeFromResources("org.apache.camel.upgrade.CamelSpringBoot422LTSMigrationRecipe");
+    }
+
+    @DocumentExample
+    @Test
+    void propertyManagedBomIsUpdated() {
+        //language=xml
+        rewriteRun(
+                pomXml(
+                        """
+                        <project>
+                            <groupId>com.example</groupId>
+                            <artifactId>my-app</artifactId>
+                            <version>1.0.0</version>
+                            <properties>
+                                
<camel-spring-boot-version>4.18.5</camel-spring-boot-version>
+                                
<maven.compiler.release>17</maven.compiler.release>
+                            </properties>
+                            <dependencyManagement>
+                                <dependencies>
+                                    <dependency>
+                                        
<groupId>org.apache.camel.springboot</groupId>
+                                        
<artifactId>camel-spring-boot-dependencies</artifactId>
+                                        
<version>${camel-spring-boot-version}</version>
+                                        <type>pom</type>
+                                        <scope>import</scope>
+                                    </dependency>
+                                </dependencies>
+                            </dependencyManagement>
+                        </project>
+                        """,
+                        """
+                        <project>
+                            <groupId>com.example</groupId>
+                            <artifactId>my-app</artifactId>
+                            <version>1.0.0</version>
+                            <properties>
+                                
<camel-spring-boot-version>%s</camel-spring-boot-version>
+                                
<maven.compiler.release>17</maven.compiler.release>
+                            </properties>
+                            <dependencyManagement>
+                                <dependencies>
+                                    <dependency>
+                                        
<groupId>org.apache.camel.springboot</groupId>
+                                        
<artifactId>camel-spring-boot-dependencies</artifactId>
+                                        
<version>${camel-spring-boot-version}</version>
+                                        <type>pom</type>
+                                        <scope>import</scope>
+                                    </dependency>
+                                </dependencies>
+                            </dependencyManagement>
+                        </project>
+                        """.formatted(LTS_VERSION)
+                )
+        );
+    }
+
+    @Test
+    void literalVersionBomIsUpdated() {
+        //language=xml
+        rewriteRun(
+                pomXml(
+                        """
+                        <project>
+                            <groupId>com.example</groupId>
+                            <artifactId>my-app</artifactId>
+                            <version>1.0.0</version>
+                            <properties>
+                                
<maven.compiler.release>17</maven.compiler.release>
+                            </properties>
+                            <dependencyManagement>
+                                <dependencies>
+                                    <dependency>
+                                        
<groupId>org.apache.camel.springboot</groupId>
+                                        
<artifactId>camel-spring-boot-bom</artifactId>
+                                        <version>4.18.5</version>
+                                        <type>pom</type>
+                                        <scope>import</scope>
+                                    </dependency>
+                                </dependencies>
+                            </dependencyManagement>
+                        </project>
+                        """,
+                        """
+                        <project>
+                            <groupId>com.example</groupId>
+                            <artifactId>my-app</artifactId>
+                            <version>1.0.0</version>
+                            <properties>
+                                
<maven.compiler.release>17</maven.compiler.release>
+                            </properties>
+                            <dependencyManagement>
+                                <dependencies>
+                                    <dependency>
+                                        
<groupId>org.apache.camel.springboot</groupId>
+                                        
<artifactId>camel-spring-boot-bom</artifactId>
+                                        <version>%s</version>
+                                        <type>pom</type>
+                                        <scope>import</scope>
+                                    </dependency>
+                                </dependencies>
+                            </dependencyManagement>
+                        </project>
+                        """.formatted(LTS_VERSION)
+                )
+        );
+    }
+
+    /**
+     * The Java 17 step of the Spring Boot 3 to 4 migration (chained through
+     * {@code camel419.CamelSpringBootMigrationRecipe}) also overrides the 
{@code javaVersion}
+     * property, which the parent inherits from the Apache parent POM with an 
older value.
+     */
+    @Test
+    void camelSpringBootParent() {
+        //language=xml
+        rewriteRun(
+                pomXml(
+                        """
+                        <project>
+                            <modelVersion>4.0.0</modelVersion>
+                            <parent>
+                                <groupId>org.apache.camel.springboot</groupId>
+                                <artifactId>spring-boot</artifactId>
+                                <version>4.18.5</version>
+                            </parent>
+                            <groupId>com.example</groupId>
+                            <artifactId>test</artifactId>
+                            <version>1.0.0</version>
+                            <properties>
+                                
<maven.compiler.release>17</maven.compiler.release>
+                            </properties>
+                        </project>
+                        """,
+                        """
+                        <project>
+                            <modelVersion>4.0.0</modelVersion>
+                            <parent>
+                                <groupId>org.apache.camel.springboot</groupId>
+                                <artifactId>spring-boot</artifactId>
+                                <version>%s</version>
+                            </parent>
+                            <groupId>com.example</groupId>
+                            <artifactId>test</artifactId>
+                            <version>1.0.0</version>
+                            <properties>
+                                <javaVersion>17</javaVersion>
+                                
<maven.compiler.release>17</maven.compiler.release>
+                            </properties>
+                        </project>
+                        """.formatted(LTS_VERSION)
+                )
+        );
+    }
+
+    /**
+     * A 4.18 LTS application runs on Spring Boot 3.5; the 4.22 LTS line 
requires Spring Boot 4.1.
+     * Only the Spring Boot line is asserted, so that a Spring Boot patch bump 
in the pom does not
+     * break the test, while a move of the shared Spring targets to another 
line does.
+     */
+    @Test
+    void springBootParentMovesToTheLtsLine() {
+        //language=xml
+        String before = """
+                <project>
+                    <modelVersion>4.0.0</modelVersion>
+                    <parent>
+                        <groupId>org.springframework.boot</groupId>
+                        <artifactId>spring-boot-starter-parent</artifactId>
+                        <version>3.5.16</version>
+                    </parent>
+                    <groupId>com.example</groupId>
+                    <artifactId>test</artifactId>
+                    <version>1.0.0</version>
+                </project>
+                """;
+        rewriteRun(
+                pomXml(before, spec -> spec.after(actual -> {
+                    Matcher version = 
SPRING_BOOT_PARENT_VERSION.matcher(actual);
+                    assertTrue(version.find(), "spring-boot-starter-parent not 
found in:\n" + actual);
+                    assertTrue(version.group(1).startsWith(SPRING_BOOT_LINE),
+                            "spring-boot-starter-parent upgraded to " + 
version.group(1) + ", expected the "
+                                    + SPRING_BOOT_LINE + "x line of 
camel-spring-boot " + LTS_VERSION);
+                    return before.replace("3.5.16", version.group(1));
+                }))
+        );
+    }
+}
diff --git 
a/camel-upgrade-recipes/src/main/resources/META-INF/rewrite/4.22LTS.yaml 
b/camel-upgrade-recipes/src/main/resources/META-INF/rewrite/4.22LTS.yaml
new file mode 100644
index 0000000..00831d8
--- /dev/null
+++ b/camel-upgrade-recipes/src/main/resources/META-INF/rewrite/4.22LTS.yaml
@@ -0,0 +1,61 @@
+#
+# 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.Camel422LTSMigrationRecipe
+displayName: Migrate to Camel 4.22LTS
+description: Migrates Apache Camel application to 4.22 LTS. This recipe 
aggregates all migration steps from 4.0 to @camel4.22-lts-version@.
+recipeList:
+  - org.apache.camel.upgrade.camel422_2.CamelMigrationRecipe
+  - org.apache.camel.upgrade.camel422_1.CamelMigrationRecipe
+  - org.apache.camel.upgrade.camel422.CamelMigrationRecipe
+  - org.apache.camel.upgrade.camel421.CamelMigrationRecipe
+  - org.apache.camel.upgrade.camel420.CamelMigrationRecipe
+  - org.apache.camel.upgrade.camel419.CamelMigrationRecipe
+  - org.apache.camel.upgrade.camel418.CamelMigrationRecipe
+  - org.apache.camel.upgrade.camel417.CamelMigrationRecipe
+  - org.apache.camel.upgrade.camel416.CamelMigrationRecipe
+  - org.apache.camel.upgrade.camel415.CamelMigrationRecipe
+  - org.apache.camel.upgrade.camel414.CamelMigrationRecipe
+  - org.apache.camel.upgrade.camel413.CamelMigrationRecipe
+  - org.apache.camel.upgrade.camel412.CamelMigrationRecipe
+  - org.apache.camel.upgrade.camel411.CamelMigrationRecipe
+  - org.apache.camel.upgrade.camel410.CamelMigrationRecipe
+  - org.apache.camel.upgrade.camel49.CamelMigrationRecipe
+  - org.apache.camel.upgrade.camel47.CamelMigrationRecipe
+  - org.apache.camel.upgrade.camel46.CamelMigrationRecipe
+  - org.apache.camel.upgrade.camel45.CamelMigrationRecipe
+  - org.apache.camel.upgrade.camel44.CamelMigrationRecipe
+  - org.apache.camel.upgrade.camel40.CamelMigrationRecipe
+  - org.apache.camel.upgrade.UpgradeToJava17
+  - org.apache.camel.upgrade.JavaVersion17
+  - org.apache.camel.upgrade.UpdatePropertiesAndYamlKeys
+  - org.openrewrite.maven.UpgradeDependencyVersion:
+      groupId: 'org.apache.camel'
+      artifactId: '*'
+      newVersion: @camel4.22-lts-version@
+  - org.openrewrite.maven.UpgradePluginVersion:
+      groupId: 'org.apache.camel'
+      artifactId: '*'
+      newVersion: @camel4.22-lts-version@
+  - org.openrewrite.maven.UpgradeParentVersion:
+      groupId: 'org.apache.camel'
+      artifactId: '*'
+      newVersion: @camel4.22-lts-version@
+  - org.openrewrite.maven.ChangePropertyValue:
+      key: camel.version
+      newValue: @camel4.22-lts-version@
diff --git a/camel-upgrade-recipes/src/main/resources/versions.properties 
b/camel-upgrade-recipes/src/main/resources/versions.properties
index df2bdb8..32c713b 100644
--- a/camel-upgrade-recipes/src/main/resources/versions.properties
+++ b/camel-upgrade-recipes/src/main/resources/versions.properties
@@ -1,5 +1,6 @@
 camel.latest.version=@camel-latest-version@
 [email protected]@
 [email protected]@
[email protected]@
 
 
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 d927a72..2e32398 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
@@ -175,6 +175,10 @@ public class CamelTestUtil {
         return getString(
                 "camel4.18.lts.version", "Could not determine 4.18 lts version 
from properties file.");
     }
+    public static String getCamel422LtsVersion() {
+        return getString(
+                "camel4.22.lts.version", "Could not determine 4.22 lts version 
from properties file.");
+    }
 
 
     /**
@@ -242,6 +246,8 @@ public class CamelTestUtil {
                 return getCamelLatestVersion();
             case "org.apache.camel.upgrade.Camel418LTSMigrationRecipe":
                 return getCamel418LtsVersion();
+            case "org.apache.camel.upgrade.Camel422LTSMigrationRecipe":
+                return getCamel422LtsVersion();
             case "org.apache.camel.upgrade.Camel410LTSMigrationRecipe":
                 return getCamel410LtsVersion();
             default:
diff --git 
a/camel-upgrade-recipes/src/test/java/org/apache/camel/upgrade/suites/CamelUpdate422LtsTestSuite.java
 
b/camel-upgrade-recipes/src/test/java/org/apache/camel/upgrade/suites/CamelUpdate422LtsTestSuite.java
new file mode 100644
index 0000000..ac1dbb3
--- /dev/null
+++ 
b/camel-upgrade-recipes/src/test/java/org/apache/camel/upgrade/suites/CamelUpdate422LtsTestSuite.java
@@ -0,0 +1,67 @@
+/*
+ * 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.suites;
+
+import org.apache.camel.upgrade.*;
+import org.junit.platform.suite.api.*;
+
+/**
+ * Test suite for Camel 4.22.2 LTS migration.
+ * Includes all tests from 4.0 to 4.22.2, covering the complete upgrade path.
+ */
+@SelectClasses({
+    CamelUpdate45Test.class,
+    CamelUpdate46Test.class,
+    CamelUpdate47Test.class,
+    CamelUpdate49Test.class,
+    CamelUpdate410Test.class,
+    CamelUpdate411Test.class,
+    CamelUpdate412Test.class,
+    CamelUpdate413Test.class,
+    CamelUpdate414Test.class,
+    CamelUpdate415Test.class,
+    CamelUpdate417Test.class,
+    CamelUpdate418Test.class,
+    CamelUpdate418_1Test.class,
+    CamelUpdate418_3Test.class,
+    CamelUpdate418_4Test.class,
+    CamelUpdate418_5Test.class,
+    CamelUpdate419Test.class,
+    CamelUpdate420Test.class,
+    CamelUpdate421Test.class,
+    CamelUpdate422Test.class,
+    CamelUpdate422_1Test.class,
+    CamelUpdate422_2Test.class
+})
+@SelectPackages({"org.apache.camel.upgrade.versions",
+        "org.apache.camel.upgrade.camel40",
+        "org.apache.camel.upgrade.camel44"
+})
+@Suite
+@SuiteDisplayName("4.22LTS")
+public class CamelUpdate422LtsTestSuite {
+
+    @BeforeSuite
+    public static void beforeSuite() {
+        System.setProperty(CamelTestUtil.PROPERTY_USE_RECIPE, 
"org.apache.camel.upgrade.Camel422LTSMigrationRecipe");
+    }
+
+    @AfterSuite
+    public static void afterSuite() {
+        System.clearProperty(CamelTestUtil.PROPERTY_USE_RECIPE);
+    }
+}
diff --git 
a/camel-upgrade-recipes/src/test/java/org/apache/camel/upgrade/versions/CamelUpdate422LtsVersionTest.java
 
b/camel-upgrade-recipes/src/test/java/org/apache/camel/upgrade/versions/CamelUpdate422LtsVersionTest.java
new file mode 100644
index 0000000..3ba0698
--- /dev/null
+++ 
b/camel-upgrade-recipes/src/test/java/org/apache/camel/upgrade/versions/CamelUpdate422LtsVersionTest.java
@@ -0,0 +1,32 @@
+/*
+ * 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.versions;
+
+import org.apache.camel.upgrade.AbstractCamelUpdateVersionTest;
+import org.apache.camel.upgrade.CamelTestUtil;
+import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
+
+//class has to stay public, because test is extended in project quarkus-updates
+@EnabledIfSystemProperty(named = CamelTestUtil.PROPERTY_USE_RECIPE, matches = 
"org.apache.camel.upgrade.Camel422LTSMigrationRecipe")
+public class CamelUpdate422LtsVersionTest extends 
AbstractCamelUpdateVersionTest {
+
+
+    @Override
+    protected String targetVersion() {
+        return CamelTestUtil.getCamel422LtsVersion();
+    }
+}
diff --git a/pom.xml b/pom.xml
index 055b45a..5cc9bce 100644
--- a/pom.xml
+++ b/pom.xml
@@ -108,6 +108,7 @@
 
         <camel4.10-lts-version>4.10.6</camel4.10-lts-version>
         <camel4.18-lts-version>4.18.5</camel4.18-lts-version>
+        <camel4.22-lts-version>4.22.2</camel4.22-lts-version>
 
         <!-- versions for latest recipes, has to be kept aligned to the latest 
camel release -->
         <camel-latest-version>4.23.0</camel-latest-version>
diff --git a/release_notes.adoc b/release_notes.adoc
index 53037a3..120f7f7 100644
--- a/release_notes.adoc
+++ b/release_notes.adoc
@@ -1,5 +1,11 @@
 = Camel Upgrade Recipes - Release notes
 
+== 4.24.0
+
+=== Camel 4.22 LTS migration recipes
+
+New aggregates for the Camel 4.22 LTS line 
(https://github.com/apache/camel-upgrade-recipes/issues/129[#129]), following 
the 4.18 LTS ones: `Camel422LTSMigrationRecipe` (`4.22LTS.yaml` in 
`camel-upgrade-recipes`) and `CamelSpringBoot422LTSMigrationRecipe` 
(`4.22LTS.yaml` in `camel-spring-boot-upgrade-recipes`). They chain every 
version recipe up to `camel422`, then the 4.22.1 and 4.22.2 patch recipes, 
without the 4.23 changes, and set the Camel and Camel Spring Boot versions to 
4.22.2 (t [...]
+
 == 4.23.0
 
 === Summary

Reply via email to