Skip to content

Commit 6809c46

Browse files
committed
Create spring-boot-r2dbc module
1 parent 54a4092 commit 6809c46

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

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 3 additions & 3 deletions
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

Lines changed: 1 addition & 2 deletions
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

Lines changed: 1 addition & 0 deletions
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"))

0 commit comments

Comments
 (0)