Skip to content

Commit 7474707

Browse files
committed
Create spring-boot-data-jdbc module
1 parent 11c1182 commit 7474707

File tree

20 files changed

+81
-26
lines changed

20 files changed

+81
-26
lines changed

settings.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ include "spring-boot-project:spring-boot-couchbase"
5555
include "spring-boot-project:spring-boot-data-cassandra"
5656
include "spring-boot-project:spring-boot-data-couchbase"
5757
include "spring-boot-project:spring-boot-data-elasticsearch"
58+
include "spring-boot-project:spring-boot-data-jdbc"
5859
include "spring-boot-project:spring-boot-data-jpa"
5960
include "spring-boot-project:spring-boot-data-ldap"
6061
include "spring-boot-project:spring-boot-data-mongodb"

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.jdbc.repositories.enabled",
24-
"type": "java.lang.Boolean",
25-
"description": "Whether to enable JDBC repositories.",
26-
"defaultValue": true
27-
},
2822
{
2923
"name": "spring.data.r2dbc.repositories.enabled",
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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +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.jdbc.JdbcRepositoriesAutoConfiguration
54
org.springframework.boot.autoconfigure.data.r2dbc.R2dbcDataAutoConfiguration
65
org.springframework.boot.autoconfigure.data.r2dbc.R2dbcRepositoriesAutoConfiguration
76
org.springframework.boot.autoconfigure.data.rest.RepositoryRestMvcAutoConfiguration
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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 JDBC"
10+
11+
dependencies {
12+
api(project(":spring-boot-project:spring-boot-jdbc"))
13+
api("org.springframework.data:spring-data-jdbc")
14+
15+
optional(project(":spring-boot-project:spring-boot-autoconfigure"))
16+
17+
testImplementation(project(":spring-boot-project:spring-boot-test"))
18+
testImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support"))
19+
testImplementation(testFixtures(project(":spring-boot-project:spring-boot-autoconfigure")))
20+
21+
testRuntimeOnly("ch.qos.logback:logback-classic")
22+
testRuntimeOnly("com.h2database:h2")
23+
testRuntimeOnly("com.zaxxer:HikariCP")
24+
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2024-2025 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.jdbc;
17+
package org.springframework.boot.data.jdbc.autoconfigure;
1818

1919
import org.springframework.boot.context.properties.ConfigurationProperties;
2020

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.jdbc;
17+
package org.springframework.boot.data.jdbc.autoconfigure;
1818

1919
import org.springframework.data.jdbc.core.dialect.JdbcDb2Dialect;
2020
import org.springframework.data.jdbc.core.dialect.JdbcMySqlDialect;
Lines changed: 1 addition & 1 deletion
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.jdbc;
17+
package org.springframework.boot.data.jdbc.autoconfigure;
1818

1919
import java.util.Optional;
2020
import java.util.Set;
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.jdbc;
17+
package org.springframework.boot.data.jdbc.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-2019 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 JDBC.
1919
*/
20-
package org.springframework.boot.autoconfigure.data.jdbc;
20+
package org.springframework.boot.data.jdbc.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.jdbc.repositories.enabled",
6+
"type": "java.lang.Boolean",
7+
"description": "Whether to enable JDBC repositories.",
8+
"defaultValue": true
9+
}
10+
]
11+
}

0 commit comments

Comments
 (0)