Skip to content

Commit

Permalink
Initial commit of Camel 3/4 upgrade rules - add stepwise upgrade rules (
Browse files Browse the repository at this point in the history
#935)

* Initial commit of Camel 3/4 upgrade rules - add stepwise upgrade rules for Camel/Camel Spring Boot based on the upgrade guides for each release seen here https://camel.apache.org/manual/camel-3x-upgrade-guide.html and https://camel.apache.org/manual/camel-4-migration-guide.html

* Add tests for camel 3.0->4.0 upgrades

* Remove javaClass as attribute from rules

* Reviewed hint priorities

* Remove all inverted single quotes from hint titles

* Add fake JARs to test dependencies

* Change JDK 8 category-id to potential; change story points for gzip-deflater change
  • Loading branch information
cunningt committed Jun 1, 2023
1 parent f100f0d commit e37e134
Show file tree
Hide file tree
Showing 192 changed files with 9,888 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
81c156807aa64217fef569ff25ef770b org.apache.camel:camel-jaxp:3.1.0
aea8b504e74e35d124e763a036f4ff22 org.apache.camel.springboot:camel-foobar:3.1.0
70d26871ac2c58032269454c11bfee7f org.apache.camel:camel-blueprint:3.2.0
70d26871ac2c58032269454c11bfee7f org.apache.camel:camel-blueprint:3.2.0
d0df744d51b60f69daa2d85b4027608b org.apache.camel:camel-test-karaf:3.2.0
d34715e67800effa4d1669066907abaf org.apache.camel:camel-eventadmin:3.2.0
3c72b4ea30512713559a0bc6af7584da org.apache.camel:camel-kura:3.2.0
2c3e5fde62241498d79a0a50ee9c0ae8 org.apache.camel:camel-osgi-activator:3.2.0
4d51b9c454129e3882b535bfd34deb81 org.apache.camel:camel-paxlogging:3.2.0
83f861cebd418b25175ecaab111df3f9 org.apache.camel:camel-spark-rest:3.2.0
6a6d8b88526f10b0e28221447d645b4b org.apache.camel:camel-spring:3.2.0
3fc50c8f20e3e65a4a27136fad8d5ac1 org.apache.camel:camel-test:3.4.0
ab08734d77587d0f669e4523f2a911f0 org.apache.camel:camel-test-spring:3.5.0
8ae36cf8a078c1f93f2f078e4d3e3c92 org.apache.camel:camel-hipchat:3.6.0
42787760cce9eedb96ed423bd4a5c2f6 org.apache.camel:camel-azure:3.9.0
46f8cda84f8d5b2912488967348dd7df org.apache.camel:camel-aws-sdb:3.9.0
304b9d177b0620f0e1191b527786301b org.apache.camel:camel-aws-translate:3.9.0
a7c228fe29d8087edbb0498d8fd7d919 org.apache.camel:camel-aws-sqs:3.9.0
9d2847565902af2a02ff5ef780fe4a79 org.apache.camel:camel-aws-sns:3.9.0
b914a042f6ee890dd34f612a0ba7f5a7 org.apache.camel:camel-aws-msk:3.9.0
317f1c0de2abaf31c829829b59186805 org.apache.camel:camel-aws-mq:3.9.0
2033bb40b8c5d82a4fc9e5f4e5037f43 org.apache.camel:camel-aws-kms:3.9.0
eb5feeca5d4ac6f8a74ca08079457be8 org.apache.camel:camel-aws-kinesis:3.9.0
d258877368cd92b7bb32f0a3995fdcfb org.apache.camel:camel-aws-kinesis-firehose:3.9.0
572ef1709cdd2822df6fa6581f4209df org.apache.camel:camel-aws-iam:3.9.0
11d8df523fb50a9761edf27aead7b149 org.apache.camel:camel-aws-eks:3.9.0
d2c37666d4d4880567f012804a8c371a org.apache.camel:camel-aws-ecs:3.9.0
1a88c1582d14695c2a87ae2afea2ee24 org.apache.camel:camel-aws-ecs2:3.9.0
160eaed6cf91c2255192ce21a5deaa57 org.apache.camel:camel-aws-ddb:3.9.0
c92fd3c553b7cc9b71887139535c726f org.apache.camel:camel-aws-cw:3.9.0
064fd875ef10e59425d2fc0888bc1101 org.apache.camel:camel-aws-s3:3.9.0
81835452f138f99739962a1e58bff189 org.apache.camel:camel-aws-swf:3.9.0
8a9e67511a34aea381564f71d7a419a7 org.apache.camel:camel-jdbc:3.10.0
9960963b34a8a9881775c0c8790a44bb org.apache.camel:camel-apns:3.11.0
147380b5045a7fc498a20767044be627 org.apache.camel:camel-saxon:3.11.0
8911aa357e4966aa2f9893a44b243d75 org.apache.camel.springboot:camel-spring-cloud-starter:3.12.0
a6f058cb9c6f313ac967f8005d519c21 org.apache.camel.springboot:camel-spring-cloud-consul-starter:3.12.0
330ec811c92cb5ca33391f0352e5a9e1 org.apache.camel.springboot:camel-spring-cloud-netflix-starter:3.12.0
c69f402b13442ae35ae863c6562fa276 org.apache.camel.springboot:camel-spring-cloud-zookeeper-starter:3.12.0
12d715448d97e6dba0facccfbabdbfa1 org.apache.camel.springboot:camel-hazelzcast-starter:3.13.0
f74dd921813289e9948bd1b0907cd178 org.apache.camel:camel-mllp:3.13.0
9eb3d9151f27d4dbe6171d88aa586544 org.apache.camel:camel-foobar:3.15.0
ac839ff060034d32d19ff6ce1b2a4594 org.apache.camel:camel-kamelet-reify:3.15.0
419e1302cdb35e90a06c619e10520e80 org.apache.camel:camel-spring-javaconfig:3.15.0
9e10aad68b2617e1d46edd9e2af44e15 org.apache.camel:camel-testcontainers-spring:3.16.0
b911664efd6563303e63ed0c0a8d2098 org.apache.camel:camel-testcontainers-spring-junit5:3.16.0
ce25779d2e41e6e0e27dda1ec966c60e org.apache.camel:camel-atomix:3.17.0
0cd0273713f72e1b7242c846f8cb32cd org.apache.camel:camel-beanstalk:3.17.0
3e792be53140d0bb10ff11f14ed9a8e0 org.apache.camel:camel-beanio:3.17.0
8ff1fd2faf54f7f169f86d1a37dfb385 org.apache.camel:camel-etcd:3.17.0
6df3cbe4c851e757b295eba73ded3f9c org.apache.camel:camel-elsql:3.17.0
dd8e71b196a03fbef1a28efa697ba264 org.apache.camel:camel-ganglia:3.17.0
2e84e13c9a699a569410c337f1979aa8 org.apache.camel:camel-nsq:3.17.0
64ecb5f4dea5dfdba4ea5e29cf009234 org.apache.camel:camel-hystrix:3.17.0
de1be8838ab0b9130cf892a8d4998eb4 org.apache.camel:camel-jing:3.17.0
533e3b5e913f9d63219e0665232799c8 org.apache.camel:camel-leveldb-legacy:3.17.0
ca91cb7d36e77b6fabfa8317257d5947 org.apache.camel:camel-msv:3.17.0
f79353c097a16eb5679b36269c7fd9a7 org.apache.camel:camel-nagios:3.17.0
ac595ac3eeeb507e3a34a871de76ae54 org.apache.camel:camel-ribbon:3.17.0
91d57cb65644b25003d1c679092bf52e org.apache.camel:camel-sip:3.17.0
cc17357ac1110e99fcee5f5593760ea5 org.apache.camel:camel-soroush:3.17.0
21f18119bc4cbdde01de2daa8c8f8e41 org.apache.camel:camel-tagsoup:3.17.0
fffa9cb80dfe922a1f1f72ebf062b3b4 org.apache.camel:camel-yammer:3.17.0
99b575eb77e153985d7f568e099c9cee org.apache.camel:camel-milo:3.18.0
d2cbe34a2da0a991641b568fe23ccd2e org.apache.camel:camel-cxf:3.18.0
1ad1431176d0f84a0601ea26cc707a43 org.apache.camel.springboot:camel-cxf-starter:3.18.0
0f590a275bfffc1712cc47739817cff6 org.apache.camel:camel-ftp:3.19.0
936c30e908b9074418203d06e1641780 org.apache.camel:camel-kafka:3.19.0
e0f2f73631ac7c4066f1db94b3cc97fd org.apache.camel:camel-netty:3.19.0
9ecded1d79a2eb16f953e3ce26cde5e5 org.apache.camel:camel-netty-http:3.19.0
d12e8546c94118231cf4b27ee8c9ff96 org.apache.camel:camel-ahc:3.19.0
969bc42fc35a01ead73b97613b4e05be org.apache.camel:camel-ahc-ws:3.19.0
05e2031baf1d5fe1f9f07c8107722a23 org.apache.camel:camel-bom:3.20.0
9a0d61df6611ce75d54c57247e8960c9 org.apache.camel:camel-salesforce-maven-plugin:3.20.0
3b53c25a796f9fcfeb856efc58a06ee2 org.apache.camel:camel-servicenow-maven-plugin:3.20.0
fe9f34f51e63a170de9141c173c2272a org.apache.camel:camel-java-joor-dsl:3.21.0
d94f533897d619ece9cef65ef1737d8e org.apache.camel:camel-dozer:3.21.0
a7281d882265321a01e329d80396f392 org.apache.camel:camel-cmis:3.21.0
1084304aa67fd8a4adaf842c05154a0e org.apache.camel.springboot:camel-platform-http-starter:3.21.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/*
* 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 sample.camel;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import org.apache.camel.http.common.HttpOperationFailedException;
import org.apache.camel.http.common.cookie.Cookie;
import org.apache.camel.processor.validation.PredicateValidatingProcessor;

/**
* A bean that returns a message when you call the {@link #saySomething()} method.
* <p/>
* Uses <tt>@Component("myBean")</tt> to register this bean with the name <tt>myBean</tt>
* that we use in the Camel route to lookup this bean.
*/
@Component("myBean")
public class SampleBean {

@Value("${greeting}")
private String say;

public String saySomething() {
HttpOperationFailedException hofe = new HttpOperationFailedException();
return say;
}

}
Binary file not shown.
Binary file not shown.
175 changes: 175 additions & 0 deletions rules/rules-reviewed/camel3/camel2/tests/data/xml-31-changes/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,175 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
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.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.apache.camel.springboot.example</groupId>
<artifactId>examples</artifactId>
<version>3.20.1.redhat-00001</version>
</parent>

<artifactId>camel-example-spring-boot-xml</artifactId>
<name>Camel SB Examples :: XML</name>
<description>An example showing how to work with Camel routes in XML files and Spring Boot</description>

<properties>
<category>Beginner</category>
<title>Spring Boot XML</title>

<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<spring.boot-version>${spring-boot-version}</spring.boot-version>
</properties>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.redhat.camel.springboot.platform</groupId>
<artifactId>camel-spring-boot-bom</artifactId>
<version>${camel-spring-boot-version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

<dependencies>

<!-- Spring Boot -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-jaxp</artifactId>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-undertow</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>

<dependency>
<groupId>org.apache.camel.springboot</groupId>
<artifactId>camel-micrometer-starter</artifactId>
</dependency>


<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-management</artifactId>
</dependency>

<!-- Camel -->
<dependency>
<groupId>org.apache.camel.springboot</groupId>
<artifactId>camel-spring-boot-xml-starter</artifactId>
</dependency>
<dependency>
<groupId>org.apache.camel.springboot</groupId>
<artifactId>camel-xml-jaxb-dsl-starter</artifactId>
</dependency>
<dependency>
<groupId>org.apache.camel.springboot</groupId>
<artifactId>camel-stream-starter</artifactId>
</dependency>

<!-- test -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-test-spring-junit5</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>${spring-boot-version}</version>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.camel</groupId>
<artifactId>camel-maven-plugin</artifactId>
<version>${camel-community.version}</version>
<!-- allows to fail if not all routes are fully covered during testing -->
<!--
<configuration>
<failOnError>true</failOnError>
</configuration>
-->
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>openshift</id>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.jkube</groupId>
<artifactId>openshift-maven-plugin</artifactId>
<version>${jkube-maven-plugin-version}</version>
<executions>
<execution>
<goals>
<goal>resource</goal>
<goal>build</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
Binary file not shown.

0 comments on commit e37e134

Please sign in to comment.