Skip to content

Commit 84633b2

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

File tree

38 files changed

+85
-52
lines changed

38 files changed

+85
-52
lines changed

settings.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ include "spring-boot-project:spring-boot-jooq"
7171
include "spring-boot-project:spring-boot-jpa"
7272
include "spring-boot-project:spring-boot-jsonb"
7373
include "spring-boot-project:spring-boot-kafka"
74+
include "spring-boot-project:spring-boot-ldap"
7475
include "spring-boot-project:spring-boot-liquibase"
7576
include "spring-boot-project:spring-boot-neo4j"
7677
include "spring-boot-project:spring-boot-mail"

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ dependencies {
3232
optional(project(":spring-boot-project:spring-boot-jetty"))
3333
optional(project(":spring-boot-project:spring-boot-jsonb"))
3434
optional(project(":spring-boot-project:spring-boot-kafka"))
35+
optional(project(":spring-boot-project:spring-boot-ldap"))
3536
optional(project(":spring-boot-project:spring-boot-liquibase"))
3637
optional(project(":spring-boot-project:spring-boot-mail"))
3738
optional(project(":spring-boot-project:spring-boot-neo4j"))

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/ldap/LdapHealthContributorAutoConfiguration.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
2727
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
2828
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
29-
import org.springframework.boot.autoconfigure.ldap.LdapAutoConfiguration;
3029
import org.springframework.context.annotation.Bean;
3130
import org.springframework.ldap.core.LdapOperations;
3231

@@ -37,7 +36,7 @@
3736
* @author Stephane Nicoll
3837
* @since 2.0.0
3938
*/
40-
@AutoConfiguration(after = LdapAutoConfiguration.class)
39+
@AutoConfiguration(afterName = "org.springframework.boot.ldap.autoconfigure.LdapAutoConfiguration")
4140
@ConditionalOnClass(LdapOperations.class)
4241
@ConditionalOnBean(LdapOperations.class)
4342
@ConditionalOnEnabledHealthIndicator("ldap")

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ 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"))
5556
optional(project(":spring-boot-project:spring-boot-liquibase"))
5657
optional(project(":spring-boot-project:spring-boot-neo4j"))
5758
optional(project(":spring-boot-project:spring-boot-r2dbc"))

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
@@ -47,8 +47,6 @@ org.springframework.boot.autoconfigure.http.HttpMessageConvertersAutoConfigurati
4747
org.springframework.boot.autoconfigure.http.client.HttpClientAutoConfiguration
4848
org.springframework.boot.autoconfigure.http.codec.CodecsAutoConfiguration
4949
org.springframework.boot.autoconfigure.jersey.JerseyAutoConfiguration
50-
org.springframework.boot.autoconfigure.ldap.embedded.EmbeddedLdapAutoConfiguration
51-
org.springframework.boot.autoconfigure.ldap.LdapAutoConfiguration
5250
org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration
5351
org.springframework.boot.autoconfigure.mongo.MongoReactiveAutoConfiguration
5452
org.springframework.boot.autoconfigure.netty.NettyAutoConfiguration

spring-boot-project/spring-boot-autoconfigure-all/src/test/java/org/springframework/boot/autoconfigure/data/ldap/LdapRepositoriesAutoConfigurationTests.java

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.
@@ -25,7 +25,7 @@
2525
import org.springframework.boot.autoconfigure.data.empty.EmptyDataPackage;
2626
import org.springframework.boot.autoconfigure.data.ldap.person.Person;
2727
import org.springframework.boot.autoconfigure.data.ldap.person.PersonRepository;
28-
import org.springframework.boot.autoconfigure.ldap.LdapAutoConfiguration;
28+
import org.springframework.boot.ldap.autoconfigure.LdapAutoConfiguration;
2929
import org.springframework.boot.test.util.TestPropertyValues;
3030
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
3131
import org.springframework.context.annotation.Configuration;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2015,6 +2015,7 @@ bom {
20152015
"spring-boot-jpa",
20162016
"spring-boot-jsonb",
20172017
"spring-boot-kafka",
2018+
"spring-boot-ldap",
20182019
"spring-boot-liquibase",
20192020
"spring-boot-loader",
20202021
"spring-boot-loader-classic",

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ dependencies {
4444
optional(project(":spring-boot-project:spring-boot-flyway"))
4545
optional(project(":spring-boot-project:spring-boot-hazelcast"))
4646
optional(project(":spring-boot-project:spring-boot-jdbc"))
47+
optional(project(":spring-boot-project:spring-boot-ldap"))
4748
optional(project(":spring-boot-project:spring-boot-liquibase"))
4849
optional(project(":spring-boot-project:spring-boot-neo4j"))
4950
optional(project(":spring-boot-project:spring-boot-pulsar"))

spring-boot-project/spring-boot-docker-compose/src/dockerTest/java/org/springframework/boot/docker/compose/service/connection/ldap/LLdapDockerComposeConnectionDetailsFactoryIntegrationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616

1717
package org.springframework.boot.docker.compose.service.connection.ldap;
1818

19-
import org.springframework.boot.autoconfigure.ldap.LdapConnectionDetails;
2019
import org.springframework.boot.docker.compose.service.connection.test.DockerComposeTest;
20+
import org.springframework.boot.ldap.autoconfigure.LdapConnectionDetails;
2121
import org.springframework.boot.testsupport.container.TestImage;
2222

2323
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/ldap/OpenLdapDockerComposeConnectionDetailsFactoryIntegrationTests.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.
@@ -16,8 +16,8 @@
1616

1717
package org.springframework.boot.docker.compose.service.connection.ldap;
1818

19-
import org.springframework.boot.autoconfigure.ldap.LdapConnectionDetails;
2019
import org.springframework.boot.docker.compose.service.connection.test.DockerComposeTest;
20+
import org.springframework.boot.ldap.autoconfigure.LdapConnectionDetails;
2121
import org.springframework.boot.testsupport.container.TestImage;
2222

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

0 commit comments

Comments
 (0)