From d9f4acc841b8316d2df60c34ab1691f70ccfa7a9 Mon Sep 17 00:00:00 2001 From: Josh Cummings Date: Thu, 17 Feb 2022 11:47:01 -0700 Subject: [PATCH] Clarify Spring Data LDAP Dependency Requirements Closes gh-32 --- src/docs/asciidoc/index.adoc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/docs/asciidoc/index.adoc b/src/docs/asciidoc/index.adoc index d90e2608..8ecad6c3 100644 --- a/src/docs/asciidoc/index.adoc +++ b/src/docs/asciidoc/index.adoc @@ -241,17 +241,20 @@ At a minimum, to use Spring LDAP you need the following: * `spring-ldap-core`: The Spring LDAP library * `spring-core`: Miscellaneous utility classes used internally by the framework * `spring-beans`: Interfaces and classes for manipulating Java beans -* `spring-data-commons`: Base infrastructure for repository support and so on * `slf4j`: A simple logging facade, used internally In addition to the required dependencies, the following optional dependencies are required for certain functionality: +* `spring-data-ldap`: Base infrastructure for repository support and so on * `spring-context`: Needed if your application is wired up by using the Spring Application Context. `spring-context` adds the ability for application objects to obtain resources by using a consistent API. It is definitely needed if you plan to use the `BaseLdapPathBeanPostProcessor`. * `spring-tx`: Needed if you plan to use the client-side compensating transaction support. * `spring-jdbc`: Needed if you plan to use the client-side compensating transaction support. * `commons-pool`: Needed if you plan to use the pooling functionality. * `spring-batch`: Needed if you plan to use the LDIF parsing functionality together with Spring Batch. +NOTE: `spring-data-ldap` transitively adds `spring-repository.xsd`, which `spring-ldap.xsd` uses. +Because of this, Spring LDAP's XML config support requires the dependency even when Spring Data's feature set is not in use. + [[spring-ldap-getting-started]] === Getting Started