Skip to content

Commit 9c99305

Browse files
wilkinsonasnicoll
authored andcommitted
Create spring-boot-r2dbc module
1 parent 98dc067 commit 9c99305

File tree

104 files changed

+220
-188
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+220
-188
lines changed

settings.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ include "spring-boot-project:spring-boot-liquibase"
6565
include "spring-boot-project:spring-boot-mail"
6666
include "spring-boot-project:spring-boot-parent"
6767
include "spring-boot-project:spring-boot-pulsar"
68+
include "spring-boot-project:spring-boot-r2dbc"
6869
include "spring-boot-project:spring-boot-reactor-netty"
6970
include "spring-boot-project:spring-boot-test"
7071
include "spring-boot-project:spring-boot-test-autoconfigure"

spring-boot-project/spring-boot-actuator-autoconfigure/build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ dependencies {
2929
optional(project(":spring-boot-project:spring-boot-kafka"))
3030
optional(project(":spring-boot-project:spring-boot-liquibase"))
3131
optional(project(":spring-boot-project:spring-boot-mail"))
32+
optional(project(":spring-boot-project:spring-boot-r2dbc"))
3233
optional(project(":spring-boot-project:spring-boot-reactor-netty"))
3334
optional(project(":spring-boot-project:spring-boot-tomcat"))
3435
optional(project(":spring-boot-project:spring-boot-undertow"))

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/r2dbc/ConnectionPoolMetricsAutoConfiguration.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
3333
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
3434
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
35-
import org.springframework.boot.autoconfigure.r2dbc.R2dbcAutoConfiguration;
35+
import org.springframework.boot.r2dbc.autoconfigure.R2dbcAutoConfiguration;
3636

3737
/**
3838
* {@link EnableAutoConfiguration Auto-configuration} for metrics on all available

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/r2dbc/ConnectionFactoryHealthContributorAutoConfiguration.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
2929
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
3030
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
31-
import org.springframework.boot.autoconfigure.r2dbc.R2dbcAutoConfiguration;
31+
import org.springframework.boot.r2dbc.autoconfigure.R2dbcAutoConfiguration;
3232
import org.springframework.context.annotation.Bean;
3333

3434
/**

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/r2dbc/R2dbcObservationAutoConfiguration.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2024 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -30,9 +30,9 @@
3030
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
3131
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
3232
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
33-
import org.springframework.boot.autoconfigure.r2dbc.ProxyConnectionFactoryCustomizer;
3433
import org.springframework.boot.context.properties.EnableConfigurationProperties;
3534
import org.springframework.boot.r2dbc.OptionsCapableConnectionFactory;
35+
import org.springframework.boot.r2dbc.autoconfigure.ProxyConnectionFactoryCustomizer;
3636
import org.springframework.context.annotation.Bean;
3737
import org.springframework.core.annotation.Order;
3838

spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/metrics/r2dbc/ConnectionPoolMetricsAutoConfigurationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
import org.springframework.boot.actuate.autoconfigure.metrics.test.MetricsRun;
3838
import org.springframework.boot.autoconfigure.AutoConfigurations;
39-
import org.springframework.boot.autoconfigure.r2dbc.R2dbcAutoConfiguration;
39+
import org.springframework.boot.r2dbc.autoconfigure.R2dbcAutoConfiguration;
4040
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
4141
import org.springframework.context.annotation.Bean;
4242
import org.springframework.context.annotation.Configuration;

spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/r2dbc/ConnectionFactoryHealthContributorAutoConfigurationTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2023 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -21,7 +21,7 @@
2121
import org.springframework.boot.actuate.autoconfigure.health.HealthContributorAutoConfiguration;
2222
import org.springframework.boot.actuate.r2dbc.ConnectionFactoryHealthIndicator;
2323
import org.springframework.boot.autoconfigure.AutoConfigurations;
24-
import org.springframework.boot.autoconfigure.r2dbc.R2dbcAutoConfiguration;
24+
import org.springframework.boot.r2dbc.autoconfigure.R2dbcAutoConfiguration;
2525
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
2626

2727
import static org.assertj.core.api.Assertions.assertThat;

spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/r2dbc/R2dbcObservationAutoConfigurationTests.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2024 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -30,11 +30,11 @@
3030

3131
import org.springframework.boot.autoconfigure.AutoConfiguration;
3232
import org.springframework.boot.autoconfigure.AutoConfigurations;
33-
import org.springframework.boot.autoconfigure.r2dbc.ProxyConnectionFactoryCustomizer;
34-
import org.springframework.boot.autoconfigure.r2dbc.R2dbcProxyAutoConfiguration;
3533
import org.springframework.boot.context.annotation.ImportCandidates;
3634
import org.springframework.boot.r2dbc.ConnectionFactoryBuilder;
3735
import org.springframework.boot.r2dbc.ConnectionFactoryDecorator;
36+
import org.springframework.boot.r2dbc.autoconfigure.ProxyConnectionFactoryCustomizer;
37+
import org.springframework.boot.r2dbc.autoconfigure.R2dbcProxyAutoConfiguration;
3838
import org.springframework.boot.test.context.assertj.AssertableApplicationContext;
3939
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
4040

spring-boot-project/spring-boot-all/src/main/resources/META-INF/spring.factories

+1-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ org.springframework.boot.reactor.ReactorEnvironmentPostProcessor
88

99
# Database Initializer Detectors
1010
org.springframework.boot.sql.init.dependency.DatabaseInitializerDetector=\
11-
org.springframework.boot.orm.jpa.JpaDatabaseInitializerDetector,\
12-
org.springframework.boot.r2dbc.init.R2dbcScriptDatabaseInitializerDetector
11+
org.springframework.boot.orm.jpa.JpaDatabaseInitializerDetector
1312

1413
# Depends On Database Initialization Detectors
1514
org.springframework.boot.sql.init.dependency.DependsOnDatabaseInitializationDetector=\

spring-boot-project/spring-boot-autoconfigure-all/build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ dependencies {
4949
optional(project(":spring-boot-project:spring-boot-jdbc"))
5050
optional(project(":spring-boot-project:spring-boot-jsonb"))
5151
optional(project(":spring-boot-project:spring-boot-liquibase"))
52+
optional(project(":spring-boot-project:spring-boot-r2dbc"))
5253
optional(project(":spring-boot-project:spring-boot-reactor-netty"))
5354
optional(project(":spring-boot-project:spring-boot-tomcat"))
5455
optional(project(":spring-boot-project:spring-boot-tx"))

spring-boot-project/spring-boot-autoconfigure-all/src/main/java/org/springframework/boot/autoconfigure/data/r2dbc/R2dbcDataAutoConfiguration.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2022 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -27,7 +27,7 @@
2727
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
2828
import org.springframework.boot.autoconfigure.condition.ConditionalOnSingleCandidate;
2929
import org.springframework.boot.autoconfigure.domain.EntityScanner;
30-
import org.springframework.boot.autoconfigure.r2dbc.R2dbcAutoConfiguration;
30+
import org.springframework.boot.r2dbc.autoconfigure.R2dbcAutoConfiguration;
3131
import org.springframework.context.ApplicationContext;
3232
import org.springframework.context.annotation.Bean;
3333
import org.springframework.data.convert.CustomConversions;

spring-boot-project/spring-boot-autoconfigure-all/src/main/java/org/springframework/boot/autoconfigure/jooq/NoDslContextBeanFailureAnalyzer.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2022 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -20,9 +20,9 @@
2020

2121
import org.springframework.beans.factory.BeanFactory;
2222
import org.springframework.beans.factory.NoSuchBeanDefinitionException;
23-
import org.springframework.boot.autoconfigure.r2dbc.R2dbcAutoConfiguration;
2423
import org.springframework.boot.diagnostics.AbstractFailureAnalyzer;
2524
import org.springframework.boot.diagnostics.FailureAnalysis;
25+
import org.springframework.boot.r2dbc.autoconfigure.R2dbcAutoConfiguration;
2626
import org.springframework.core.Ordered;
2727

2828
class NoDslContextBeanFailureAnalyzer extends AbstractFailureAnalyzer<NoSuchBeanDefinitionException>

spring-boot-project/spring-boot-autoconfigure-all/src/main/resources/META-INF/spring.factories

+1-5
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,7 @@ org.springframework.boot.autoconfigure.http.MessageConverterBackgroundPreinitial
1010
org.springframework.boot.diagnostics.FailureAnalyzer=\
1111
org.springframework.boot.autoconfigure.data.redis.RedisUrlSyntaxFailureAnalyzer,\
1212
org.springframework.boot.autoconfigure.jooq.JaxbNotAvailableExceptionFailureAnalyzer,\
13-
org.springframework.boot.autoconfigure.jooq.NoDslContextBeanFailureAnalyzer,\
14-
org.springframework.boot.autoconfigure.r2dbc.ConnectionFactoryBeanCreationFailureAnalyzer,\
15-
org.springframework.boot.autoconfigure.r2dbc.MissingR2dbcPoolDependencyFailureAnalyzer,\
16-
org.springframework.boot.autoconfigure.r2dbc.MultipleConnectionPoolConfigurationsFailureAnalyzer,\
17-
org.springframework.boot.autoconfigure.r2dbc.NoConnectionFactoryBeanFailureAnalyzer
13+
org.springframework.boot.autoconfigure.jooq.NoDslContextBeanFailureAnalyzer
1814

1915
# Template Availability Providers
2016
org.springframework.boot.autoconfigure.template.TemplateAvailabilityProvider=\

spring-boot-project/spring-boot-autoconfigure-all/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports

-4
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,6 @@ org.springframework.boot.autoconfigure.neo4j.Neo4jAutoConfiguration
6464
org.springframework.boot.autoconfigure.netty.NettyAutoConfiguration
6565
org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration
6666
org.springframework.boot.autoconfigure.quartz.QuartzAutoConfiguration
67-
org.springframework.boot.autoconfigure.r2dbc.R2dbcAutoConfiguration
68-
org.springframework.boot.autoconfigure.r2dbc.R2dbcInitializationAutoConfiguration
69-
org.springframework.boot.autoconfigure.r2dbc.R2dbcProxyAutoConfiguration
70-
org.springframework.boot.autoconfigure.r2dbc.R2dbcTransactionManagerAutoConfiguration
7167
org.springframework.boot.autoconfigure.reactor.ReactorAutoConfiguration
7268
org.springframework.boot.autoconfigure.rsocket.RSocketMessagingAutoConfiguration
7369
org.springframework.boot.autoconfigure.rsocket.RSocketRequesterAutoConfiguration

spring-boot-project/spring-boot-autoconfigure-all/src/test/java/org/springframework/boot/autoconfigure/data/r2dbc/R2dbcDataAutoConfigurationTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2023 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -21,7 +21,7 @@
2121
import org.springframework.boot.autoconfigure.AutoConfigurations;
2222
import org.springframework.boot.autoconfigure.TestAutoConfigurationPackage;
2323
import org.springframework.boot.autoconfigure.data.r2dbc.city.City;
24-
import org.springframework.boot.autoconfigure.r2dbc.R2dbcAutoConfiguration;
24+
import org.springframework.boot.r2dbc.autoconfigure.R2dbcAutoConfiguration;
2525
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
2626
import org.springframework.data.domain.ManagedTypes;
2727
import org.springframework.data.r2dbc.core.R2dbcEntityTemplate;

spring-boot-project/spring-boot-autoconfigure-all/src/test/java/org/springframework/boot/autoconfigure/data/r2dbc/R2dbcRepositoriesAutoConfigurationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
import org.springframework.boot.autoconfigure.data.empty.EmptyDataPackage;
2929
import org.springframework.boot.autoconfigure.data.r2dbc.city.City;
3030
import org.springframework.boot.autoconfigure.data.r2dbc.city.CityRepository;
31-
import org.springframework.boot.autoconfigure.r2dbc.R2dbcAutoConfiguration;
31+
import org.springframework.boot.r2dbc.autoconfigure.R2dbcAutoConfiguration;
3232
import org.springframework.boot.test.context.FilteredClassLoader;
3333
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
3434
import org.springframework.boot.testsupport.classpath.resources.WithResource;

spring-boot-project/spring-boot-autoconfigure-all/src/test/java/org/springframework/boot/autoconfigure/jooq/NoDslContextBeanFailureAnalyzerTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2023 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -21,7 +21,7 @@
2121

2222
import org.springframework.beans.factory.NoSuchBeanDefinitionException;
2323
import org.springframework.boot.autoconfigure.AutoConfigurations;
24-
import org.springframework.boot.autoconfigure.r2dbc.R2dbcAutoConfiguration;
24+
import org.springframework.boot.r2dbc.autoconfigure.R2dbcAutoConfiguration;
2525
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
2626

2727
import static org.assertj.core.api.Assertions.assertThat;

spring-boot-project/spring-boot-autoconfigure-all/src/test/resources/META-INF/services/io.r2dbc.spi.ConnectionFactoryProvider

-1
This file was deleted.

spring-boot-project/spring-boot-autoconfigure-all/src/test/resources/META-INF/spring.factories

-1
This file was deleted.

spring-boot-project/spring-boot-dependencies/build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -2048,6 +2048,7 @@ bom {
20482048
"spring-boot-mail",
20492049
"spring-boot-properties-migrator",
20502050
"spring-boot-pulsar",
2051+
"spring-boot-r2dbc",
20512052
"spring-boot-reactor-netty",
20522053
"spring-boot-starter",
20532054
"spring-boot-starter-activemq",

spring-boot-project/spring-boot-devtools/build.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ dependencies {
3737
intTestRuntimeOnly("org.springframework:spring-web")
3838

3939
optional(project(":spring-boot-project:spring-boot-jdbc"))
40+
optional(project(":spring-boot-project:spring-boot-r2dbc"))
4041
optional("io.projectreactor:reactor-core")
4142
optional("io.r2dbc:r2dbc-spi")
4243
optional("jakarta.servlet:jakarta.servlet-api")
@@ -54,6 +55,7 @@ dependencies {
5455
testImplementation(project(":spring-boot-project:spring-boot-test"))
5556
testImplementation(project(":spring-boot-project:spring-boot-tomcat"))
5657
testImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support"))
58+
testImplementation(testFixtures(project(":spring-boot-project:spring-boot-r2dbc")))
5759
testImplementation("ch.qos.logback:logback-classic")
5860
testImplementation("com.h2database:h2")
5961
testImplementation("com.zaxxer:HikariCP")

spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/autoconfigure/DevToolsR2dbcAutoConfiguration.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030
import org.springframework.boot.autoconfigure.condition.ConditionOutcome;
3131
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
3232
import org.springframework.boot.autoconfigure.condition.SpringBootCondition;
33-
import org.springframework.boot.autoconfigure.r2dbc.R2dbcAutoConfiguration;
3433
import org.springframework.boot.devtools.autoconfigure.DevToolsR2dbcAutoConfiguration.DevToolsConnectionFactoryCondition;
3534
import org.springframework.boot.r2dbc.EmbeddedDatabaseConnection;
35+
import org.springframework.boot.r2dbc.autoconfigure.R2dbcAutoConfiguration;
3636
import org.springframework.context.ApplicationEventPublisher;
3737
import org.springframework.context.annotation.Bean;
3838
import org.springframework.context.annotation.ConditionContext;

spring-boot-project/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/autoconfigure/DevToolsR2dbcAutoConfigurationTests.java

+7-23
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2024 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -23,17 +23,15 @@
2323
import java.util.concurrent.atomic.AtomicReference;
2424
import java.util.function.Supplier;
2525

26-
import io.r2dbc.spi.Connection;
2726
import io.r2dbc.spi.ConnectionFactory;
28-
import io.r2dbc.spi.ConnectionFactoryMetadata;
2927
import org.junit.jupiter.api.BeforeEach;
3028
import org.junit.jupiter.api.Nested;
3129
import org.junit.jupiter.api.Test;
32-
import org.reactivestreams.Publisher;
3330

3431
import org.springframework.beans.factory.annotation.AnnotatedGenericBeanDefinition;
35-
import org.springframework.boot.autoconfigure.r2dbc.R2dbcAutoConfiguration;
3632
import org.springframework.boot.devtools.autoconfigure.DevToolsR2dbcAutoConfiguration.R2dbcDatabaseShutdownEvent;
33+
import org.springframework.boot.r2dbc.SimpleConnectionFactoryProvider.SimpleTestConnectionFactory;
34+
import org.springframework.boot.r2dbc.autoconfigure.R2dbcAutoConfiguration;
3735
import org.springframework.boot.test.util.TestPropertyValues;
3836
import org.springframework.boot.testsupport.classpath.ClassPathExclusions;
3937
import org.springframework.context.ApplicationListener;
@@ -109,7 +107,7 @@ void emptyFactoryMethodMetadataIgnored() throws Exception {
109107

110108
private ConfigurableApplicationContext getEmptyFactoryMethodMetadataIgnoredContext() {
111109
AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();
112-
ConnectionFactory connectionFactory = new MockConnectionFactory();
110+
ConnectionFactory connectionFactory = new SimpleTestConnectionFactory();
113111
AnnotatedGenericBeanDefinition beanDefinition = new AnnotatedGenericBeanDefinition(
114112
connectionFactory.getClass());
115113
context.registerBeanDefinition("connectionFactory", beanDefinition);
@@ -170,7 +168,7 @@ static class SingleConnectionFactoryConfiguration {
170168

171169
@Bean
172170
ConnectionFactory connectionFactory() {
173-
return new MockConnectionFactory();
171+
return new SimpleTestConnectionFactory();
174172
}
175173

176174
}
@@ -180,26 +178,12 @@ static class MultipleConnectionFactoriesConfiguration {
180178

181179
@Bean
182180
ConnectionFactory connectionFactoryOne() {
183-
return new MockConnectionFactory();
181+
return new SimpleTestConnectionFactory();
184182
}
185183

186184
@Bean
187185
ConnectionFactory connectionFactoryTwo() {
188-
return new MockConnectionFactory();
189-
}
190-
191-
}
192-
193-
private static final class MockConnectionFactory implements ConnectionFactory {
194-
195-
@Override
196-
public Publisher<? extends Connection> create() {
197-
return null;
198-
}
199-
200-
@Override
201-
public ConnectionFactoryMetadata getMetadata() {
202-
return null;
186+
return new SimpleTestConnectionFactory();
203187
}
204188

205189
}

spring-boot-project/spring-boot-docker-compose/build.gradle

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ dependencies {
1515
dockerTestImplementation(project(":spring-boot-project:spring-boot-flyway"))
1616
dockerTestImplementation(project(":spring-boot-project:spring-boot-liquibase"))
1717
dockerTestImplementation(project(":spring-boot-project:spring-boot-pulsar"))
18+
dockerTestImplementation(project(":spring-boot-project:spring-boot-r2dbc"))
1819
dockerTestImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support-docker"))
1920
dockerTestImplementation("com.hazelcast:hazelcast")
2021
dockerTestImplementation("com.redis:testcontainers-redis")
@@ -44,8 +45,8 @@ dependencies {
4445
optional(project(":spring-boot-project:spring-boot-jdbc"))
4546
optional(project(":spring-boot-project:spring-boot-liquibase"))
4647
optional(project(":spring-boot-project:spring-boot-pulsar"))
48+
optional(project(":spring-boot-project:spring-boot-r2dbc"))
4749
optional("com.hazelcast:hazelcast")
48-
optional("io.r2dbc:r2dbc-spi")
4950
optional("org.mongodb:mongodb-driver-core")
5051
optional("org.neo4j.driver:neo4j-java-driver")
5152
optional("org.springframework.data:spring-data-r2dbc")

spring-boot-project/spring-boot-docker-compose/src/dockerTest/java/org/springframework/boot/docker/compose/service/connection/clickhouse/ClickHouseR2dbcDockerComposeConnectionDetailsFactoryIntegrationTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2024 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -23,9 +23,9 @@
2323
import io.r2dbc.spi.ConnectionFactoryOptions;
2424
import reactor.core.publisher.Mono;
2525

26-
import org.springframework.boot.autoconfigure.r2dbc.R2dbcConnectionDetails;
2726
import org.springframework.boot.docker.compose.service.connection.test.DockerComposeTest;
2827
import org.springframework.boot.jdbc.DatabaseDriver;
28+
import org.springframework.boot.r2dbc.autoconfigure.R2dbcConnectionDetails;
2929
import org.springframework.boot.testsupport.container.TestImage;
3030

3131
import static org.assertj.core.api.Assertions.assertThat;

spring-boot-project/spring-boot-docker-compose/src/dockerTest/java/org/springframework/boot/docker/compose/service/connection/mariadb/MariaDbR2dbcDockerComposeConnectionDetailsFactoryIntegrationTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2024 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -18,8 +18,8 @@
1818

1919
import io.r2dbc.spi.ConnectionFactoryOptions;
2020

21-
import org.springframework.boot.autoconfigure.r2dbc.R2dbcConnectionDetails;
2221
import org.springframework.boot.docker.compose.service.connection.test.DockerComposeTest;
22+
import org.springframework.boot.r2dbc.autoconfigure.R2dbcConnectionDetails;
2323
import org.springframework.boot.testsupport.container.TestImage;
2424

2525
import static org.assertj.core.api.Assertions.assertThat;

spring-boot-project/spring-boot-docker-compose/src/dockerTest/java/org/springframework/boot/docker/compose/service/connection/mysql/MySqlR2dbcDockerComposeConnectionDetailsFactoryIntegrationTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2024 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -18,8 +18,8 @@
1818

1919
import io.r2dbc.spi.ConnectionFactoryOptions;
2020

21-
import org.springframework.boot.autoconfigure.r2dbc.R2dbcConnectionDetails;
2221
import org.springframework.boot.docker.compose.service.connection.test.DockerComposeTest;
22+
import org.springframework.boot.r2dbc.autoconfigure.R2dbcConnectionDetails;
2323
import org.springframework.boot.testsupport.container.TestImage;
2424

2525
import static org.assertj.core.api.Assertions.assertThat;

0 commit comments

Comments
 (0)