JAVA-22210 Upgrade dependencies versions for spring-apache-camel module (#14359)
This commit is contained in:
		
							parent
							
								
									0ff24b8a56
								
							
						
					
					
						commit
						612a42286a
					
				| @ -14,7 +14,7 @@ This module contains articles about Spring with Apache Camel | |||||||
| ### Framework Versions: | ### Framework Versions: | ||||||
| 
 | 
 | ||||||
| - Spring 5.3.25 | - Spring 5.3.25 | ||||||
| - Apache Camel 3.14.7 | - Apache Camel 3.21.0 | ||||||
| 
 | 
 | ||||||
| ### Build and Run Application | ### Build and Run Application | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -19,12 +19,12 @@ | |||||||
|         <dependency> |         <dependency> | ||||||
|             <groupId>org.apache.camel</groupId> |             <groupId>org.apache.camel</groupId> | ||||||
|             <artifactId>camel-core</artifactId> |             <artifactId>camel-core</artifactId> | ||||||
|             <version>${env.camel.version}</version> |             <version>${camel.version}</version> | ||||||
|         </dependency> |         </dependency> | ||||||
|         <dependency> |         <dependency> | ||||||
|             <groupId>org.apache.camel</groupId> |             <groupId>org.apache.camel</groupId> | ||||||
|             <artifactId>camel-spring</artifactId> |             <artifactId>camel-spring</artifactId> | ||||||
|             <version>${env.camel.version}</version> |             <version>${camel.version}</version> | ||||||
|             <exclusions> |             <exclusions> | ||||||
|                 <exclusion> |                 <exclusion> | ||||||
|                     <artifactId>commons-logging</artifactId> |                     <artifactId>commons-logging</artifactId> | ||||||
| @ -35,17 +35,12 @@ | |||||||
|         <dependency> |         <dependency> | ||||||
|             <groupId>org.apache.camel</groupId> |             <groupId>org.apache.camel</groupId> | ||||||
|             <artifactId>camel-stream</artifactId> |             <artifactId>camel-stream</artifactId> | ||||||
|             <version>${env.camel.version}</version> |             <version>${camel.version}</version> | ||||||
|         </dependency> |         </dependency> | ||||||
|         <dependency> |         <dependency> | ||||||
|             <groupId>org.springframework</groupId> |             <groupId>org.springframework</groupId> | ||||||
|             <artifactId>spring-context</artifactId> |             <artifactId>spring-context</artifactId> | ||||||
|             <version>${env.spring.version}</version> |             <version>${spring.version}</version> | ||||||
|         </dependency> |  | ||||||
|         <dependency> |  | ||||||
|             <groupId>org.apache.camel</groupId> |  | ||||||
|             <artifactId>camel-spring-javaconfig</artifactId> |  | ||||||
|             <version>${env.camel.version}</version> |  | ||||||
|         </dependency> |         </dependency> | ||||||
|         <dependency> |         <dependency> | ||||||
|             <groupId>org.apache.camel.springboot</groupId> |             <groupId>org.apache.camel.springboot</groupId> | ||||||
| @ -77,12 +72,16 @@ | |||||||
|             <version>${camel.version}</version> |             <version>${camel.version}</version> | ||||||
|             <scope>test</scope> |             <scope>test</scope> | ||||||
|         </dependency> |         </dependency> | ||||||
|  |         <dependency> | ||||||
|  |             <groupId>org.apache.camel</groupId> | ||||||
|  |             <artifactId>camel-spring-xml</artifactId> | ||||||
|  |             <version>${camel.version}</version> | ||||||
|  |         </dependency> | ||||||
|     </dependencies> |     </dependencies> | ||||||
| 
 | 
 | ||||||
|     <properties> |     <properties> | ||||||
|         <env.camel.version>3.14.7</env.camel.version> |         <spring.version>5.3.25</spring.version> | ||||||
|         <env.spring.version>5.3.25</env.spring.version> |         <camel.version>3.21.0</camel.version> | ||||||
|         <camel.version>3.15.0</camel.version> |  | ||||||
|     </properties> |     </properties> | ||||||
| 
 | 
 | ||||||
|     <profiles> |     <profiles> | ||||||
|  | |||||||
| @ -1,26 +1,24 @@ | |||||||
| package com.baeldung.camel.apache.file.cfg; | package com.baeldung.camel.apache.file.cfg; | ||||||
| 
 | 
 | ||||||
| import java.util.Arrays; | import java.util.Collections; | ||||||
| import java.util.List; | import java.util.List; | ||||||
| 
 | 
 | ||||||
| import org.apache.camel.builder.RouteBuilder; | import org.apache.camel.builder.RouteBuilder; | ||||||
| import org.apache.camel.spring.javaconfig.CamelConfiguration; |  | ||||||
| import org.springframework.context.annotation.Bean; | import org.springframework.context.annotation.Bean; | ||||||
| import org.springframework.context.annotation.Configuration; | import org.springframework.context.annotation.Configuration; | ||||||
| 
 | 
 | ||||||
| import com.baeldung.camel.apache.file.ContentBasedFileRouter; | import com.baeldung.camel.apache.file.ContentBasedFileRouter; | ||||||
| 
 | 
 | ||||||
| @Configuration | @Configuration | ||||||
| public class ContentBasedFileRouterConfig extends CamelConfiguration { | public class ContentBasedFileRouterConfig { | ||||||
| 
 | 
 | ||||||
| 	@Bean | 	@Bean | ||||||
| 	ContentBasedFileRouter getContentBasedFileRouter() { | 	ContentBasedFileRouter getContentBasedFileRouter() { | ||||||
| 		return new ContentBasedFileRouter(); | 		return new ContentBasedFileRouter(); | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	@Override |  | ||||||
| 	public List<RouteBuilder> routes() { | 	public List<RouteBuilder> routes() { | ||||||
| 		return Arrays.asList(getContentBasedFileRouter()); | 		return Collections.singletonList(getContentBasedFileRouter()); | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user