-
Notifications
You must be signed in to change notification settings - Fork 16
/
3alpha.yaml
173 lines (171 loc) · 7.57 KB
/
3alpha.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
#
# 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://github.com/openrewrite/rewrite-migrate-java/blob/main/src/main/resources/META-INF/rewrite/jakarta-ee-9.yml
# modified to:
# - use the Jakarta EE 10 versions (except for JPA as we are waiting for the Hibernate ORM 6 upgrade)
# - not add new dependencies but transform them
#####
#####
# Update the Camel - Quarkus extensions
#####
---
type: specs.openrewrite.org/v1beta/category
name: Camel 3.x
packageName: io.quarkus.updates.camel30
description: Migrate from Camel 3.x to 4.x.
---
type: specs.openrewrite.org/v1beta/recipe
name: io.quarkus.updates.camel30.CamelQuarkusMigrationRecipe
displayName: Migrate `camel3` application to `camel4.`
description: Migrate `camel3` quarkus application to `camel4` quarkus.
recipeList:
- io.quarkus.updates.camel30.xml.XmlDslRecipe
- io.quarkus.updates.camel30.xml.CircuitBreakerXmlDslRecipe
- io.quarkus.updates.camel30.yaml.CamelQuarkusYamlRouteConfigurationSequenceRecipe
- io.quarkus.updates.camel30.yaml.CamelQuarkusYamlStepsInFromRecipe
- io.quarkus.updates.camel30.java.CamelAPIsRecipe
- io.quarkus.updates.camel30.java.CamelEIPRecipe
- io.quarkus.updates.camel30.java.CamelBeanRecipe
- io.quarkus.updates.camel30.java.CamelHttpRecipe
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.camel.migrate.ChangeTypes
displayName: Migrate moved types between Camel 2.x and Camel 3.x
description: Change type of classes related to change of API.
recipeList:
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.apache.camel.support.IntrospectionSupport
newFullyQualifiedTypeName: org.apache.camel.impl.engine.IntrospectionSupport
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.camel.migrate.removedExtensions
displayName: Remove non existing camel-quarkus extensions
description: Removal of maven dependencies for extension, which are no longer part of Camel 3.x.
#todo would be better to put a comment about removed extension and possible alternatives, once the openrewrite recipe allows that
recipeList:
- org.openrewrite.maven.RemoveDependency:
groupId: org.apache.camel.quarkus
artifactId: camel-quarkus-activemq
- org.openrewrite.maven.RemoveDependency:
groupId: org.apache.camel.quarkus
artifactId: camel-quarkus-activemq
- org.openrewrite.maven.RemoveDependency:
groupId: org.apache.camel.quarkus
artifactId: camel-quarkus-atmos
- org.openrewrite.maven.RemoveDependency:
groupId: org.apache.camel.quarkus
artifactId: camel-quarkus-avro-rpc
- org.openrewrite.maven.RemoveDependency:
groupId: org.apache.camel.quarkus
artifactId: camel-quarkus-caffeine-lrucache
- org.openrewrite.maven.RemoveDependency:
groupId: org.apache.camel.quarkus
artifactId: camel-quarkus-datasonnet
- org.openrewrite.maven.RemoveDependency:
groupId: org.apache.camel.quarkus
artifactId: camel-quarkus-dozer
- org.openrewrite.maven.RemoveDependency:
groupId: org.apache.camel.quarkus
artifactId: camel-quarkus-elasticsearch-rest
- org.openrewrite.maven.RemoveDependency:
groupId: org.apache.camel.quarkus
artifactId: camel-quarkus-gora
- org.openrewrite.maven.RemoveDependency:
groupId: org.apache.camel.quarkus
artifactId: camel-quarkus-hbase
- org.openrewrite.maven.RemoveDependency:
groupId: org.apache.camel.quarkus
artifactId: camel-quarkus-iota
- org.openrewrite.maven.RemoveDependency:
groupId: org.apache.camel.quarkus
artifactId: camel-quarkus-jbpm
- org.openrewrite.maven.RemoveDependency:
groupId: org.apache.camel.quarkus
artifactId: camel-quarkus-jclouds
- org.openrewrite.maven.RemoveDependency:
groupId: org.apache.camel.quarkus
artifactId: camel-quarkus-johnzon
- org.openrewrite.maven.RemoveDependency:
groupId: org.apache.camel.quarkus
artifactId: camel-quarkus-microprofile-metrics
- org.openrewrite.maven.RemoveDependency:
groupId: org.apache.camel.quarkus
artifactId: camel-quarkus-milo
- org.openrewrite.maven.RemoveDependency:
groupId: org.apache.camel.quarkus
artifactId: camel-quarkus-opentracing
- org.openrewrite.maven.RemoveDependency:
groupId: org.apache.camel.quarkus
artifactId: camel-quarkus-optaplanner
- org.openrewrite.maven.RemoveDependency:
groupId: org.apache.camel.quarkus
artifactId: camel-quarkus-rabbitmq
- org.openrewrite.maven.RemoveDependency:
groupId: org.apache.camel.quarkus
artifactId: camel-quarkus-smallrye-reactive-messaging
- org.openrewrite.maven.RemoveDependency:
groupId: org.apache.camel.quarkus
artifactId: camel-quarkus-solr
- org.openrewrite.maven.RemoveDependency:
groupId: org.apache.camel.quarkus
artifactId: camel-quarkus-tika
- org.openrewrite.maven.RemoveDependency:
groupId: org.apache.camel.quarkus
artifactId: camel-quarkus-vm
- org.openrewrite.maven.RemoveDependency:
groupId: org.apache.camel.quarkus
artifactId: camel-quarkus-xmlsecurity
- org.openrewrite.maven.RemoveDependency:
groupId: org.apache.camel.quarkus
artifactId: camel-quarkus-xstream
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.camel.migrate.ChangePropertyValue
displayName: Camel API changes in application.properties
description: Apache Camel API migration from version 3.20 or higher to 4.0. Removal of deprecated APIs, which could be part of the `application.properties`.
#todo would be better to put a comment about changed property and its alternative, once the openrewrite recipe allows that
recipeList:
- org.openrewrite.properties.ChangePropertyValue:
propertyKey: camel.threadpool.rejectedPolicy
newValue: "Abort #DiscardOldest has been removed, consider Abort"
oldValue: DiscardOldest
- org.openrewrite.properties.ChangePropertyValue:
propertyKey: camel.threadpool.rejectedPolicy
newValue: "Abort #Discard has been removed, consider Abort"
oldValue: Discard
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.camel.migrate.ChangeManagedChoiceMBeanMethodName
displayName: Change of method names brought by Camel JMX API changes
description: MBeans now use a consistent method name of `extendedInformation`.
recipeList:
- org.openrewrite.java.ChangeMethodName:
methodPattern: org.apache.camel.api.management.mbean.ManagedChoiceMBean choiceStatistics()
newMethodName: extendedInformation
matchOverrides: null
ignoreDefinition: null
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.camel.migrate.ChangeManagedFailoverLoadBalancerMBeanMethodName
displayName: Change of method names brought by Camel JMX API changes
description: MBeans now use a consistent method name of `extendedInformation`.
recipeList:
- org.openrewrite.java.ChangeMethodName:
methodPattern: org.apache.camel.api.management.mbean.ManagedFailoverLoadBalancerMBean exceptionStatistics()
newMethodName: extendedInformation
matchOverrides: null
ignoreDefinition: null