ldap.gradle 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. // Ldap build file
  2. dependencies {
  3. compile project(':spring-security-core'),
  4. springCoreDependency,
  5. "org.springframework:spring-beans:$springVersion",
  6. "org.springframework:spring-context:$springVersion",
  7. "org.springframework:spring-tx:$springVersion"
  8. optional "org.apache.directory.server:apacheds-core:$apacheDsVersion",
  9. "org.apache.directory.server:apacheds-core-entry:$apacheDsVersion",
  10. "org.apache.directory.server:apacheds-protocol-shared:$apacheDsVersion",
  11. "org.apache.directory.server:apacheds-protocol-ldap:$apacheDsVersion",
  12. "org.apache.directory.server:apacheds-server-jndi:$apacheDsVersion",
  13. 'org.apache.directory.shared:shared-ldap:0.9.15',
  14. 'ldapsdk:ldapsdk:4.1',
  15. 'com.unboundid:unboundid-ldapsdk:3.2.1'
  16. compile ("org.springframework.ldap:spring-ldap-core:$springLdapVersion") {
  17. exclude(group: 'commons-logging', module: 'commons-logging')
  18. exclude(group: 'org.springframework', module: 'spring-core')
  19. exclude(group: 'org.springframework', module: 'spring-tx')
  20. exclude(group: 'org.springframework', module: 'spring-beans')
  21. exclude(group: 'org.springframework.data', module: 'spring-data-commons')
  22. }
  23. testCompile "org.slf4j:slf4j-api:$slf4jVersion",
  24. "org.slf4j:jcl-over-slf4j:$slf4jVersion"
  25. }
  26. integrationTest {
  27. include('**/ApacheDSServerIntegrationTests.class', '**/ApacheDSEmbeddedLdifTests.class',
  28. '**/LdapUserDetailsManagerModifyPasswordTests.class')
  29. // exclude('**/OpenLDAPIntegrationTestSuite.class')
  30. maxParallelForks = 1
  31. }
  32. // Runs a server for running the integration tests against (from an IDE, for example)
  33. task(ldapServer, dependsOn: 'integrationTestClasses', type: JavaExec) {
  34. classpath = sourceSets.integrationTest.runtimeClasspath
  35. main = 'org.springframework.security.ldap.ApacheDSServerIntegrationTests'
  36. }