ldap.gradle 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. optional "org.apache.directory.server:apacheds-core:$apacheDsVersion",
  8. "org.apache.directory.server:apacheds-core-entry:$apacheDsVersion",
  9. "org.apache.directory.server:apacheds-protocol-shared:$apacheDsVersion",
  10. "org.apache.directory.server:apacheds-protocol-ldap:$apacheDsVersion",
  11. "org.apache.directory.server:apacheds-server-jndi:$apacheDsVersion",
  12. 'org.apache.directory.shared:shared-ldap:0.9.15',
  13. 'ldapsdk:ldapsdk:4.1'
  14. compile ("org.springframework.ldap:spring-ldap-core:$springLdapVersion") {
  15. exclude(group: 'commons-logging', module: 'commons-logging')
  16. exclude(group: 'org.springframework', module: 'spring-core')
  17. exclude(group: 'org.springframework', module: 'spring-tx')
  18. exclude(group: 'org.springframework', module: 'spring-beans')
  19. }
  20. }
  21. integrationTest {
  22. include('**/ApacheDSServerIntegrationTests.class')
  23. // exclude('**/OpenLDAPIntegrationTestSuite.class')
  24. maxParallelForks = 1
  25. systemProperties['apacheDSWorkDir'] = "${buildDir}/apacheDSWork"
  26. }
  27. // Runs a server for running the integration tests against (from an IDE, for example)
  28. task(ldapServer, dependsOn: 'integrationTestClasses', type: JavaExec) {
  29. classpath = sourceSets.integrationTest.runtimeClasspath
  30. main = 'org.springframework.security.ldap.ApacheDSServerIntegrationTests'
  31. systemProperties['apacheDSWorkDir'] = "${buildDir}/apacheDSWork"
  32. }