2
0

spring-security-ldap.gradle 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. apply plugin: 'io.spring.convention.spring-module'
  2. dependencies {
  3. compile project(':spring-security-core')
  4. compile 'org.springframework:spring-beans'
  5. compile 'org.springframework:spring-context'
  6. compile 'org.springframework:spring-core'
  7. compile 'org.springframework:spring-tx'
  8. optional apachedsDependencies
  9. optional 'ldapsdk:ldapsdk'
  10. optional "com.unboundid:unboundid-ldapsdk"
  11. optional 'org.apache.directory.shared:shared-ldap'
  12. compile ('org.springframework.ldap:spring-ldap-core') {
  13. exclude(group: 'commons-logging', module: 'commons-logging')
  14. exclude(group: 'org.springframework', module: 'spring-beans')
  15. exclude(group: 'org.springframework', module: 'spring-core')
  16. exclude(group: 'org.springframework', module: 'spring-tx')
  17. exclude(group: 'org.springframework.data', module: 'spring-data-commons')
  18. }
  19. testCompile project(':spring-security-test')
  20. testCompile 'org.slf4j:jcl-over-slf4j'
  21. testCompile 'org.slf4j:slf4j-api'
  22. }
  23. integrationTest {
  24. include('**/ApacheDSServerIntegrationTests.class',
  25. '**/ApacheDSEmbeddedLdifTests.class',
  26. '**/LdapUserDetailsManagerModifyPasswordTests.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. }