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:
|
||||
|
||||
- Spring 5.3.25
|
||||
- Apache Camel 3.14.7
|
||||
- Apache Camel 3.21.0
|
||||
|
||||
### Build and Run Application
|
||||
|
||||
|
|
|
@ -19,12 +19,12 @@
|
|||
<dependency>
|
||||
<groupId>org.apache.camel</groupId>
|
||||
<artifactId>camel-core</artifactId>
|
||||
<version>${env.camel.version}</version>
|
||||
<version>${camel.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.camel</groupId>
|
||||
<artifactId>camel-spring</artifactId>
|
||||
<version>${env.camel.version}</version>
|
||||
<version>${camel.version}</version>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<artifactId>commons-logging</artifactId>
|
||||
|
@ -35,17 +35,12 @@
|
|||
<dependency>
|
||||
<groupId>org.apache.camel</groupId>
|
||||
<artifactId>camel-stream</artifactId>
|
||||
<version>${env.camel.version}</version>
|
||||
<version>${camel.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework</groupId>
|
||||
<artifactId>spring-context</artifactId>
|
||||
<version>${env.spring.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.camel</groupId>
|
||||
<artifactId>camel-spring-javaconfig</artifactId>
|
||||
<version>${env.camel.version}</version>
|
||||
<version>${spring.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.camel.springboot</groupId>
|
||||
|
@ -77,12 +72,16 @@
|
|||
<version>${camel.version}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.camel</groupId>
|
||||
<artifactId>camel-spring-xml</artifactId>
|
||||
<version>${camel.version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<properties>
|
||||
<env.camel.version>3.14.7</env.camel.version>
|
||||
<env.spring.version>5.3.25</env.spring.version>
|
||||
<camel.version>3.15.0</camel.version>
|
||||
<spring.version>5.3.25</spring.version>
|
||||
<camel.version>3.21.0</camel.version>
|
||||
</properties>
|
||||
|
||||
<profiles>
|
||||
|
|
|
@ -1,26 +1,24 @@
|
|||
package com.baeldung.camel.apache.file.cfg;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.camel.builder.RouteBuilder;
|
||||
import org.apache.camel.spring.javaconfig.CamelConfiguration;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
import com.baeldung.camel.apache.file.ContentBasedFileRouter;
|
||||
|
||||
@Configuration
|
||||
public class ContentBasedFileRouterConfig extends CamelConfiguration {
|
||||
public class ContentBasedFileRouterConfig {
|
||||
|
||||
@Bean
|
||||
ContentBasedFileRouter getContentBasedFileRouter() {
|
||||
return new ContentBasedFileRouter();
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<RouteBuilder> routes() {
|
||||
return Arrays.asList(getContentBasedFileRouter());
|
||||
return Collections.singletonList(getContentBasedFileRouter());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue