-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #267 from JiriOndrusek/upgrade-to-camel-4.10.0
Bump camel-upgrade-recipes to 4.10.0
- Loading branch information
Showing
6 changed files
with
67 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
recipes-tests/src/test/java/io/quarkus/updates/camel/CamelUpdate410Test.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package io.quarkus.updates.camel; | ||
|
||
import org.openrewrite.test.RecipeSpec; | ||
import org.openrewrite.test.TypeValidation; | ||
|
||
public class CamelUpdate410Test extends org.apache.camel.upgrade.CamelUpdate410Test { | ||
|
||
@Override | ||
public void defaults(RecipeSpec spec) { | ||
//let the parser be initialized in the camel parent | ||
super.defaults(spec); | ||
//recipe has to be loaded differently | ||
CamelQuarkusTestUtil.recipe3_18(spec) | ||
.typeValidationOptions(TypeValidation.none()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
recipes/src/main/resources/quarkus-updates/org.apache.camel.quarkus/camel-quarkus/3.18.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# | ||
# Copyright 2021 the original author or authors. | ||
# <p> | ||
# Licensed 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 | ||
# <p> | ||
# https://www.apache.org/licenses/LICENSE-2.0 | ||
# <p> | ||
# 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.html | ||
##### | ||
|
||
##### | ||
# Update the Camel - Quarkus extensions | ||
##### | ||
--- | ||
type: specs.openrewrite.org/v1beta/recipe | ||
name: io.quarkus.updates.camel.camel410.CamelQuarkusMigrationRecipe | ||
displayName: Migrates `camel 4.9` application to `camel 4.10` | ||
description: Migrates `camel 4.9` quarkus application to `camel 4.10`. | ||
recipeList: | ||
# use the recipe from camel upgrade recipes project | ||
- org.apache.camel.upgrade.camel410.CamelMigrationRecipe |