JAVA-27682: Fix messaging-modules for JDK 17 (#15454)

This commit is contained in:
Harry9656 2024-01-13 19:59:54 +05:30 committed by GitHub
parent be9a547522
commit aba565114d
7 changed files with 13 additions and 39 deletions

View File

@ -24,6 +24,7 @@
<properties> <properties>
<geode.core>1.6.0</geode.core> <geode.core>1.6.0</geode.core>
<rocketmq.version>2.0.4</rocketmq.version> <rocketmq.version>2.0.4</rocketmq.version>
<spring-boot.repackage.skip>true</spring-boot.repackage.skip> <!-- to avoid repackaging of the jar -->
</properties> </properties>
</project> </project>

View File

@ -8,10 +8,10 @@
<packaging>pom</packaging> <packaging>pom</packaging>
<parent> <parent>
<artifactId>parent-boot-2</artifactId> <artifactId>parent-boot-3</artifactId>
<groupId>com.baeldung</groupId> <groupId>com.baeldung</groupId>
<version>0.0.1-SNAPSHOT</version> <version>0.0.1-SNAPSHOT</version>
<relativePath>../parent-boot-2</relativePath> <relativePath>../parent-boot-3</relativePath>
</parent> </parent>
<modules> <modules>
@ -20,8 +20,8 @@
<module>jgroups</module> <module>jgroups</module>
<module>rabbitmq</module> <module>rabbitmq</module>
<module>spring-amqp</module> <module>spring-amqp</module>
<!--<module>spring-apache-camel</module> <!- failing after upgrading to jdk17--> <module>spring-apache-camel</module>
<!--<module>spring-jms</module> <!- failing after upgrading to jdk17--> <module>spring-jms</module>
<module>postgres-notify</module> <module>postgres-notify</module>
</modules> </modules>

View File

@ -42,6 +42,7 @@
<properties> <properties>
<spring-cloud-dependencies.version>2020.0.3</spring-cloud-dependencies.version> <spring-cloud-dependencies.version>2020.0.3</spring-cloud-dependencies.version>
<spring-boot.repackage.skip>true</spring-boot.repackage.skip> <!-- to avoid repackaging of the jar -->
</properties> </properties>
</project> </project>

View File

@ -2,7 +2,7 @@ package com.baeldung.pubsubmq.server;
import org.springframework.amqp.rabbit.core.RabbitTemplate; import org.springframework.amqp.rabbit.core.RabbitTemplate;
import javax.annotation.PostConstruct; import jakarta.annotation.PostConstruct;
public class Publisher { public class Publisher {

View File

@ -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.21.0 - Apache Camel 3.22.0
### Build and Run Application ### Build and Run Application

View File

@ -37,11 +37,6 @@
<artifactId>camel-stream</artifactId> <artifactId>camel-stream</artifactId>
<version>${camel.version}</version> <version>${camel.version}</version>
</dependency> </dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency> <dependency>
<groupId>org.apache.camel.springboot</groupId> <groupId>org.apache.camel.springboot</groupId>
<artifactId>camel-servlet-starter</artifactId> <artifactId>camel-servlet-starter</artifactId>
@ -80,34 +75,10 @@
</dependencies> </dependencies>
<properties> <properties>
<spring.version>5.3.25</spring.version>
<camel.version>4.3.0</camel.version> <camel.version>4.3.0</camel.version>
<camel-swagger.version>3.22.0</camel-swagger.version> <camel-swagger.version>3.22.0</camel-swagger.version>
<junit-jupiter.version>5.10.1</junit-jupiter.version> <!--Version not compatible with the one inherited from parent-->
<spring-boot.repackage.skip>true</spring-boot.repackage.skip> <!--Skip repackaging for multiple main classes-->
</properties> </properties>
<profiles>
<profile>
<id>spring-boot</id>
<build>
<defaultGoal>spring-boot:run</defaultGoal>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
<configuration>
<mainClass>com.baeldung.camel.boot.boot.testing.GreetingsFileSpringApplication</mainClass>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project> </project>

View File

@ -86,6 +86,7 @@
<mockito-core.version>4.6.1</mockito-core.version> <mockito-core.version>4.6.1</mockito-core.version>
<activemq-junit.version>5.16.5</activemq-junit.version> <activemq-junit.version>5.16.5</activemq-junit.version>
<testcontainers.version>1.17.3</testcontainers.version> <testcontainers.version>1.17.3</testcontainers.version>
<junit-jupiter.version>5.10.1</junit-jupiter.version>
</properties> </properties>
</project> </project>