spring-security-ldap.gradle 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  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 'org.apache.directory.shared:shared-ldap'
  11. compile ('org.springframework.ldap:spring-ldap-core') {
  12. exclude(group: 'commons-logging', module: 'commons-logging')
  13. exclude(group: 'org.springframework', module: 'spring-beans')
  14. exclude(group: 'org.springframework', module: 'spring-core')
  15. exclude(group: 'org.springframework', module: 'spring-tx')
  16. exclude(group: 'org.springframework.data', module: 'spring-data-commons')
  17. }
  18. testCompile 'org.slf4j:jcl-over-slf4j'
  19. testCompile 'org.slf4j:slf4j-api'
  20. }
  21. integrationTest {
  22. include('**/ApacheDSServerIntegrationTests.class', '**/ApacheDSEmbeddedLdifTests.class')
  23. // exclude('**/OpenLDAPIntegrationTestSuite.class')
  24. maxParallelForks = 1
  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. }