JiriOndrusek commented on code in PR #124:
URL: 
https://github.com/apache/camel-upgrade-recipes/pull/124#discussion_r3850704091


##########
camel-upgrade-recipes/src/main/resources/META-INF/rewrite/4.22.yaml:
##########
@@ -0,0 +1,185 @@
+#
+# 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_22.html
+#####
+
+#####
+# Update the Camel project from 4.21 to 4.22
+#####
+---
+type: specs.openrewrite.org/v1beta/recipe
+name: org.apache.camel.upgrade.camel422.CamelMigrationRecipe
+displayName: Migrates `camel 4.21` application to `camel 4.22`
+description: Migrates `camel 4.21` application to `camel 4.22`.
+recipeList:
+  - org.apache.camel.upgrade.camel422.migrateAzureCredentialTypes
+  - org.apache.camel.upgrade.camel422.migrateAwsApacheClient
+  - org.apache.camel.upgrade.camel422.migrateMinioTypes
+  - 
org.apache.camel.upgrade.camel422.removeCamelReactiveExecutorTomcatDependency
+  - org.apache.camel.upgrade.camel422.migrateSpringAiToolsDependency
+  - org.apache.camel.upgrade.camel422.migrateOpenAiChatCompletion
+  - org.apache.camel.upgrade.camel422.migrateLangchain4jToolsUris
+  - org.apache.camel.upgrade.camel422.migrateSpringAiToolsUris
+  - org.apache.camel.upgrade.camel422.migrateAtmosphereWebsocketHeaders
+---
+## 
https://github.com/apache/camel/blob/main/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_22.adoc#camel-azure---component-specific-credentialtype-enums-removed
+type: specs.openrewrite.org/v1beta/recipe
+name: org.apache.camel.upgrade.camel422.migrateAzureCredentialTypes
+displayName: Migrate Azure component-specific CredentialType enums to common 
enum
+description: Migrates removed component-specific CredentialType enums to the 
shared org.apache.camel.component.azure.common.CredentialType enum.
+recipeList:
+  - org.openrewrite.java.ChangeType:
+      oldFullyQualifiedTypeName: 
org.apache.camel.component.azure.cosmosdb.CredentialType
+      newFullyQualifiedTypeName: 
org.apache.camel.component.azure.common.CredentialType
+  - org.openrewrite.java.ChangeType:
+      oldFullyQualifiedTypeName: 
org.apache.camel.component.azure.eventgrid.CredentialType
+      newFullyQualifiedTypeName: 
org.apache.camel.component.azure.common.CredentialType
+  - org.openrewrite.java.ChangeType:
+      oldFullyQualifiedTypeName: 
org.apache.camel.component.azure.eventhubs.CredentialType
+      newFullyQualifiedTypeName: 
org.apache.camel.component.azure.common.CredentialType
+  - org.openrewrite.java.ChangeType:
+      oldFullyQualifiedTypeName: 
org.apache.camel.component.file.azure.CredentialType
+      newFullyQualifiedTypeName: 
org.apache.camel.component.azure.common.CredentialType
+  - org.openrewrite.java.ChangeType:
+      oldFullyQualifiedTypeName: 
org.apache.camel.component.azure.functions.CredentialType
+      newFullyQualifiedTypeName: 
org.apache.camel.component.azure.common.CredentialType
+  - org.openrewrite.java.ChangeType:
+      oldFullyQualifiedTypeName: 
org.apache.camel.component.azure.key.vault.CredentialType
+      newFullyQualifiedTypeName: 
org.apache.camel.component.azure.common.CredentialType
+  - org.openrewrite.java.ChangeType:
+      oldFullyQualifiedTypeName: 
org.apache.camel.component.azure.servicebus.CredentialType
+      newFullyQualifiedTypeName: 
org.apache.camel.component.azure.common.CredentialType
+  - org.openrewrite.java.ChangeType:
+      oldFullyQualifiedTypeName: 
org.apache.camel.component.azure.storage.blob.CredentialType
+      newFullyQualifiedTypeName: 
org.apache.camel.component.azure.common.CredentialType
+  - org.openrewrite.java.ChangeType:
+      oldFullyQualifiedTypeName: 
org.apache.camel.component.azure.storage.datalake.CredentialType
+      newFullyQualifiedTypeName: 
org.apache.camel.component.azure.common.CredentialType
+  - org.openrewrite.java.ChangeType:
+      oldFullyQualifiedTypeName: 
org.apache.camel.component.azure.storage.queue.CredentialType
+      newFullyQualifiedTypeName: 
org.apache.camel.component.azure.common.CredentialType
+---
+## 
https://github.com/apache/camel/blob/main/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_22.adoc#camel-aws---migrated-from-apache-client-to-apache5-client
+type: specs.openrewrite.org/v1beta/recipe
+name: org.apache.camel.upgrade.camel422.migrateAwsApacheClient
+displayName: Migrate AWS SDK apache-client to apache5-client
+description: Migrates software.amazon.awssdk:apache-client to 
software.amazon.awssdk:apache5-client.
+recipeList:
+  - org.openrewrite.maven.ChangeDependencyGroupIdAndArtifactId:

Review Comment:
   Fixed — gated on org.apache.camel:camel-aws* and newVersion: 2.46.0 added 
(BOM-managed versions untouched), with positive and negative tests.
   



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to