ldap.gradle 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. testCompile "org.slf4j:slf4j-api:$slf4jVersion",
  21. "org.slf4j:jcl-over-slf4j:$slf4jVersion"
  22. }
  23. integrationTest {
  24. include('**/ApacheDSServerIntegrationTests.class')
  25. // exclude('**/OpenLDAPIntegrationTestSuite.class')
  26. maxParallelForks = 1
  27. }
  28. // Runs a server for running the integration tests against (from an IDE, for example)
  29. task(ldapServer, dependsOn: 'integrationTestClasses', type: JavaExec) {
  30. classpath = sourceSets.integrationTest.runtimeClasspath
  31. main = 'org.springframework.security.ldap.ApacheDSServerIntegrationTests'
  32. }