ldap.gradle 1.7 KB

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