ldap.gradle 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. // Ldap build file
  2. 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. systemProperties['apacheDSWorkDir'] = "${buildDir}/apacheDSWork"
  33. }
  34. task(ldapServer, dependsOn: 'integrationTestClasses', type: JavaExec) {
  35. classpath = sourceSets.integrationTest.runtimeClasspath
  36. main = 'org.springframework.security.ldap.ApacheDSServerIntegrationTests'
  37. systemProperties['apacheDSWorkDir'] = "${buildDir}/apacheDSWork"
  38. }