Skip to content

Commit 542d567

Browse files
committed
GH-1415 - Upgrade to Spring Boot 4.0 RC1.
Upgrade to Spring Framework 7.0 RC2, Testcontainers 2.0.1, JMH Benchmark Runner 1.0.
1 parent 8d7a45c commit 542d567

File tree

28 files changed

+67
-74
lines changed

28 files changed

+67
-74
lines changed

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@
4646
<nullaway.version>0.12.10</nullaway.version>
4747
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
4848
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
49-
<spring-boot.version>4.0.0-M3</spring-boot.version>
50-
<spring-framework.version>7.0.0-M9</spring-framework.version> <!-- For Javadoc links only -->
51-
<testcontainers.version>1.21.3</testcontainers.version>
49+
<spring-boot.version>4.0.0-RC1</spring-boot.version>
50+
<spring-framework.version>7.0.0-RC2</spring-framework.version> <!-- For Javadoc links only -->
51+
<testcontainers.version>2.0.1</testcontainers.version>
5252
<structurizr.version>4.1.0</structurizr.version>
5353
<micrometer-tracing.version>1.6.0-RC1</micrometer-tracing.version>
5454

spring-modulith-benchmarks/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040

4141
<dependency>
4242
<groupId>com.github.mp911de.microbenchmark-runner</groupId>
43-
<artifactId>microbenchmark-runner-junit5</artifactId>
44-
<version>0.5.0.RELEASE</version>
43+
<artifactId>microbenchmark-runner-junit</artifactId>
44+
<version>1.0.0</version>
4545
<scope>test</scope>
4646
</dependency>
4747

spring-modulith-benchmarks/src/test/java/org/springframework/modulith/events/core/PublicationsInProgressBenchmarks.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616
package org.springframework.modulith.events.core;
1717

18-
import jmh.mbr.junit5.Microbenchmark;
18+
import jmh.mbr.junit.Microbenchmark;
1919
import lombok.Value;
2020

2121
import java.util.ArrayList;

spring-modulith-events/spring-modulith-events-amqp/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898

9999
<dependency>
100100
<groupId>org.testcontainers</groupId>
101-
<artifactId>rabbitmq</artifactId>
101+
<artifactId>testcontainers-rabbitmq</artifactId>
102102
<scope>test</scope>
103103
</dependency>
104104

spring-modulith-events/spring-modulith-events-amqp/src/test/java/org/springframework/modulith/events/amqp/RabbitEventPublicationIntegrationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
import org.springframework.modulith.events.CompletedEventPublications;
3636
import org.springframework.modulith.events.Externalized;
3737
import org.springframework.transaction.annotation.Transactional;
38-
import org.testcontainers.containers.RabbitMQContainer;
38+
import org.testcontainers.rabbitmq.RabbitMQContainer;
3939
import org.testcontainers.utility.DockerImageName;
4040

4141
/**

spring-modulith-events/spring-modulith-events-jdbc/pom.xml

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,10 @@
5858
</dependency>
5959

6060
<!-- Testing -->
61-
61+
6262
<dependency>
6363
<groupId>org.springframework.boot</groupId>
64-
<artifactId>spring-boot-starter-test</artifactId>
65-
<scope>test</scope>
66-
</dependency>
67-
68-
<dependency>
69-
<groupId>org.springframework.boot</groupId>
70-
<artifactId>spring-boot-starter-jdbc</artifactId>
64+
<artifactId>spring-boot-starter-jdbc-test</artifactId>
7165
<scope>test</scope>
7266
</dependency>
7367

@@ -93,37 +87,37 @@
9387

9488
<dependency>
9589
<groupId>org.testcontainers</groupId>
96-
<artifactId>junit-jupiter</artifactId>
90+
<artifactId>testcontainers-junit-jupiter</artifactId>
9791
<scope>test</scope>
9892
</dependency>
9993

10094
<dependency>
10195
<groupId>org.testcontainers</groupId>
102-
<artifactId>postgresql</artifactId>
96+
<artifactId>testcontainers-postgresql</artifactId>
10397
<scope>test</scope>
10498
</dependency>
10599

106100
<dependency>
107101
<groupId>org.testcontainers</groupId>
108-
<artifactId>mysql</artifactId>
102+
<artifactId>testcontainers-mysql</artifactId>
109103
<scope>test</scope>
110104
</dependency>
111105

112106
<dependency>
113107
<groupId>org.testcontainers</groupId>
114-
<artifactId>mariadb</artifactId>
108+
<artifactId>testcontainers-mariadb</artifactId>
115109
<scope>test</scope>
116110
</dependency>
117111

118112
<dependency>
119113
<groupId>org.testcontainers</groupId>
120-
<artifactId>mssqlserver</artifactId>
114+
<artifactId>testcontainers-mssqlserver</artifactId>
121115
<scope>test</scope>
122116
</dependency>
123117

124118
<dependency>
125119
<groupId>org.testcontainers</groupId>
126-
<artifactId>oracle-free</artifactId>
120+
<artifactId>testcontainers-oracle-free</artifactId>
127121
<scope>test</scope>
128122
</dependency>
129123

spring-modulith-events/spring-modulith-events-jdbc/src/test/java/org/springframework/modulith/events/jdbc/DatabaseSchemaInitializerIntegrationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
import org.junit.jupiter.api.Test;
2626
import org.springframework.beans.factory.annotation.Autowired;
2727
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
28-
import org.springframework.boot.test.autoconfigure.jdbc.JdbcTest;
28+
import org.springframework.boot.jdbc.test.autoconfigure.JdbcTest;
2929
import org.springframework.jdbc.core.JdbcOperations;
3030
import org.springframework.modulith.events.core.EventSerializer;
3131
import org.springframework.modulith.testapp.TestApplication;

spring-modulith-events/spring-modulith-events-jdbc/src/test/java/org/springframework/modulith/events/jdbc/JdbcEventPublicationRepositoryIntegrationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
import org.junit.jupiter.api.Nested;
3535
import org.junit.jupiter.api.Test;
3636
import org.springframework.beans.factory.annotation.Autowired;
37-
import org.springframework.boot.test.autoconfigure.jdbc.JdbcTest;
37+
import org.springframework.boot.jdbc.test.autoconfigure.JdbcTest;
3838
import org.springframework.context.annotation.Import;
3939
import org.springframework.jdbc.core.JdbcOperations;
4040
import org.springframework.modulith.events.core.EventSerializer;

spring-modulith-events/spring-modulith-events-jdbc/src/test/java/org/springframework/modulith/events/jdbc/JdbcEventPublicationRepositoryPerformance.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
import org.junit.jupiter.api.BeforeEach;
2929
import org.junit.jupiter.api.Test;
3030
import org.springframework.beans.factory.annotation.Autowired;
31-
import org.springframework.boot.test.autoconfigure.jdbc.JdbcTest;
31+
import org.springframework.boot.jdbc.test.autoconfigure.JdbcTest;
3232
import org.springframework.jdbc.core.JdbcOperations;
3333
import org.springframework.modulith.events.core.EventPublicationRepository;
3434
import org.springframework.modulith.events.core.EventSerializer;

spring-modulith-events/spring-modulith-events-jdbc/src/test/java/org/springframework/modulith/events/jdbc/JdbcEventPublicationRepositoryV2IntegrationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
import org.junit.jupiter.api.Nested;
3535
import org.junit.jupiter.api.Test;
3636
import org.springframework.beans.factory.annotation.Autowired;
37-
import org.springframework.boot.test.autoconfigure.jdbc.JdbcTest;
37+
import org.springframework.boot.jdbc.test.autoconfigure.JdbcTest;
3838
import org.springframework.context.annotation.Import;
3939
import org.springframework.jdbc.core.JdbcOperations;
4040
import org.springframework.modulith.events.EventPublication.Status;

0 commit comments

Comments
 (0)