Skip to content

Commit ae00ac3

Browse files
snicollwilkinsona
authored andcommitted
Create spring-boot-data-ldap module
1 parent 84633b2 commit ae00ac3

File tree

19 files changed

+60
-39
lines changed

19 files changed

+60
-39
lines changed

settings.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ include "spring-boot-project:spring-boot-batch"
5353
include "spring-boot-project:spring-boot-cassandra"
5454
include "spring-boot-project:spring-boot-couchbase"
5555
include "spring-boot-project:spring-boot-data-jpa"
56+
include "spring-boot-project:spring-boot-data-ldap"
5657
include "spring-boot-project:spring-boot-dependencies"
5758
include "spring-boot-project:spring-boot-devtools"
5859
include "spring-boot-project:spring-boot-docker-compose"

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ dependencies {
5252
optional(project(":spring-boot-project:spring-boot-jackson"))
5353
optional(project(":spring-boot-project:spring-boot-jdbc"))
5454
optional(project(":spring-boot-project:spring-boot-jsonb"))
55-
optional(project(":spring-boot-project:spring-boot-ldap"))
5655
optional(project(":spring-boot-project:spring-boot-liquibase"))
5756
optional(project(":spring-boot-project:spring-boot-neo4j"))
5857
optional(project(":spring-boot-project:spring-boot-r2dbc"))
@@ -113,7 +112,6 @@ dependencies {
113112
optional("com.sendgrid:sendgrid-java") {
114113
exclude group: "commons-logging", module: "commons-logging"
115114
}
116-
optional("com.unboundid:unboundid-ldapsdk")
117115
optional("com.zaxxer:HikariCP")
118116
optional("nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect")
119117
optional("org.aspectj:aspectjweaver")
@@ -185,7 +183,6 @@ dependencies {
185183
exclude group: "org.elasticsearch.client", module: "transport"
186184
}
187185
optional("org.springframework.data:spring-data-jdbc")
188-
optional("org.springframework.data:spring-data-ldap")
189186
optional("org.springframework.data:spring-data-mongodb")
190187
optional("org.springframework.data:spring-data-neo4j")
191188
optional("org.springframework.data:spring-data-r2dbc")

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
@@ -326,12 +326,6 @@
326326
"description": "Whether to enable JDBC repositories.",
327327
"defaultValue": true
328328
},
329-
{
330-
"name": "spring.data.ldap.repositories.enabled",
331-
"type": "java.lang.Boolean",
332-
"description": "Whether to enable LDAP repositories.",
333-
"defaultValue": true
334-
},
335329
{
336330
"name": "spring.data.mongodb.grid-fs-database",
337331
"type": "java.lang.String",

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
@@ -13,7 +13,6 @@ org.springframework.boot.autoconfigure.data.elasticsearch.ElasticsearchDataAutoC
1313
org.springframework.boot.autoconfigure.data.elasticsearch.ElasticsearchRepositoriesAutoConfiguration
1414
org.springframework.boot.autoconfigure.data.elasticsearch.ReactiveElasticsearchRepositoriesAutoConfiguration
1515
org.springframework.boot.autoconfigure.data.jdbc.JdbcRepositoriesAutoConfiguration
16-
org.springframework.boot.autoconfigure.data.ldap.LdapRepositoriesAutoConfiguration
1716
org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfiguration
1817
org.springframework.boot.autoconfigure.data.mongo.MongoReactiveDataAutoConfiguration
1918
org.springframework.boot.autoconfigure.data.mongo.MongoReactiveRepositoriesAutoConfiguration
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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 LDAP"
10+
11+
dependencies {
12+
api(project(":spring-boot-project:spring-boot-ldap"))
13+
api("org.springframework.data:spring-data-ldap")
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+
}
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.ldap;
17+
package org.springframework.boot.data.ldap.autoconfigure;
1818

1919
import javax.naming.ldap.LdapContext;
2020

@@ -31,7 +31,7 @@
3131
* {@link EnableAutoConfiguration Auto-configuration} for Spring Data's LDAP Repositories.
3232
*
3333
* @author Eddú Meléndez
34-
* @since 1.5.0
34+
* @since 4.0.0
3535
*/
3636
@AutoConfiguration
3737
@ConditionalOnClass({ LdapContext.class, LdapRepository.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.ldap;
17+
package org.springframework.boot.data.ldap.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 LDAP.
1919
*/
20-
package org.springframework.boot.autoconfigure.data.ldap;
20+
package org.springframework.boot.data.ldap.autoconfigure;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"groups": [],
3+
"properties": [
4+
{
5+
"name": "spring.data.ldap.repositories.enabled",
6+
"type": "java.lang.Boolean",
7+
"description": "Whether to enable LDAP repositories.",
8+
"defaultValue": true
9+
}
10+
]
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
org.springframework.boot.data.ldap.autoconfigure.LdapRepositoriesAutoConfiguration

0 commit comments

Comments
 (0)