ldap.gradle 1.7 KB

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