Skip to content

Commit e93db9d

Browse files
committed
Create spring-boot-data-r2dbc module
1 parent 7474707 commit e93db9d

File tree

20 files changed

+86
-33
lines changed

20 files changed

+86
-33
lines changed

settings.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ include "spring-boot-project:spring-boot-data-jpa"
6060
include "spring-boot-project:spring-boot-data-ldap"
6161
include "spring-boot-project:spring-boot-data-mongodb"
6262
include "spring-boot-project:spring-boot-data-neo4j"
63+
include "spring-boot-project:spring-boot-data-r2dbc"
6364
include "spring-boot-project:spring-boot-data-redis"
6465
include "spring-boot-project:spring-boot-dependencies"
6566
include "spring-boot-project:spring-boot-devtools"

spring-boot-project/spring-boot-autoconfigure-all/src/main/resources/META-INF/additional-spring-configuration-metadata.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,6 @@
1919
"description": "Whether to enable the PersistenceExceptionTranslationPostProcessor.",
2020
"defaultValue": true
2121
},
22-
{
23-
"name": "spring.data.r2dbc.repositories.enabled",
24-
"type": "java.lang.Boolean",
25-
"description": "Whether to enable R2DBC repositories.",
26-
"defaultValue": true
27-
},
2822
{
2923
"name" : "spring.datasource.continue-on-error",
3024
"type" : "java.lang.Boolean",

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
org.springframework.boot.autoconfigure.aop.AopAutoConfiguration
22
org.springframework.boot.autoconfigure.cache.CacheAutoConfiguration
33
org.springframework.boot.autoconfigure.dao.PersistenceExceptionTranslationAutoConfiguration
4-
org.springframework.boot.autoconfigure.data.r2dbc.R2dbcDataAutoConfiguration
5-
org.springframework.boot.autoconfigure.data.r2dbc.R2dbcRepositoriesAutoConfiguration
64
org.springframework.boot.autoconfigure.data.rest.RepositoryRestMvcAutoConfiguration
75
org.springframework.boot.autoconfigure.data.web.SpringDataWebAutoConfiguration
86
org.springframework.boot.autoconfigure.graphql.GraphQlAutoConfiguration
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
plugins {
2+
id "java-library"
3+
id "org.springframework.boot.auto-configuration"
4+
id "org.springframework.boot.configuration-properties"
5+
id "org.springframework.boot.deployed"
6+
id "org.springframework.boot.optional-dependencies"
7+
}
8+
9+
description = "Spring Boot Data R2DBC"
10+
11+
dependencies {
12+
api(project(":spring-boot-project:spring-boot-r2dbc"))
13+
api("io.r2dbc:r2dbc-spi")
14+
api("io.r2dbc:r2dbc-pool")
15+
api("org.springframework.data:spring-data-r2dbc")
16+
17+
optional(project(":spring-boot-project:spring-boot-autoconfigure"))
18+
19+
testImplementation(project(":spring-boot-project:spring-boot-test"))
20+
testImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support"))
21+
testImplementation(testFixtures(project(":spring-boot-project:spring-boot-autoconfigure")))
22+
testImplementation("io.projectreactor:reactor-test")
23+
testImplementation("io.r2dbc:r2dbc-h2")
24+
25+
testRuntimeOnly("ch.qos.logback:logback-classic")
26+
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.boot.autoconfigure.data.r2dbc;
17+
package org.springframework.boot.data.r2dbc.autoconfigure;
1818

1919
import java.util.ArrayList;
2020
import java.util.Collections;
@@ -49,7 +49,7 @@
4949
*
5050
* @author Mark Paluch
5151
* @author Oliver Drotbohm
52-
* @since 2.3.0
52+
* @since 4.0.0
5353
*/
5454
@AutoConfiguration(after = R2dbcAutoConfiguration.class)
5555
@ConditionalOnClass({ DatabaseClient.class, R2dbcEntityTemplate.class })
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.boot.autoconfigure.data.r2dbc;
17+
package org.springframework.boot.data.r2dbc.autoconfigure;
1818

1919
import io.r2dbc.spi.ConnectionFactory;
2020

@@ -34,7 +34,7 @@
3434
* {@link EnableAutoConfiguration Auto-configuration} for Spring Data R2DBC Repositories.
3535
*
3636
* @author Mark Paluch
37-
* @since 2.3.0
37+
* @since 4.0.0
3838
* @see EnableR2dbcRepositories
3939
*/
4040
@AutoConfiguration(after = R2dbcDataAutoConfiguration.class)
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.
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.boot.autoconfigure.data.r2dbc;
17+
package org.springframework.boot.data.r2dbc.autoconfigure;
1818

1919
import java.lang.annotation.Annotation;
2020

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2020 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.
@@ -17,4 +17,4 @@
1717
/**
1818
* Auto-Configuration for Spring Data R2DBC.
1919
*/
20-
package org.springframework.boot.autoconfigure.data.r2dbc;
20+
package org.springframework.boot.data.r2dbc.autoconfigure;
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"groups": [],
3+
"properties": [
4+
{
5+
"name": "spring.data.r2dbc.repositories.enabled",
6+
"type": "java.lang.Boolean",
7+
"description": "Whether to enable R2DBC repositories.",
8+
"defaultValue": true
9+
}
10+
]
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
org.springframework.boot.data.r2dbc.autoconfigure.R2dbcDataAutoConfiguration
2+
org.springframework.boot.data.r2dbc.autoconfigure.R2dbcRepositoriesAutoConfiguration

0 commit comments

Comments
 (0)