ldap.gradle 1.3 KB

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