apply plugin: 'io.spring.convention.spring-module'

dependencies {
	compile project(':spring-security-core')
	compile 'org.springframework:spring-beans'
	compile 'org.springframework:spring-context'
	compile 'org.springframework:spring-core'
	compile 'org.springframework:spring-tx'

	optional apachedsDependencies
	optional 'ldapsdk:ldapsdk'
	optional "com.unboundid:unboundid-ldapsdk"
	optional 'org.apache.directory.shared:shared-ldap'

	compile ('org.springframework.ldap:spring-ldap-core') {
		exclude(group: 'commons-logging', module: 'commons-logging')
		exclude(group: 'org.springframework', module: 'spring-beans')
		exclude(group: 'org.springframework', module: 'spring-core')
		exclude(group: 'org.springframework', module: 'spring-tx')
		exclude(group: 'org.springframework.data', module: 'spring-data-commons')
	}

	testCompile project(':spring-security-test')
	testCompile 'org.slf4j:jcl-over-slf4j'
	testCompile 'org.slf4j:slf4j-api'
}

integrationTest {
//	  exclude('**/OpenLDAPIntegrationTestSuite.class')
	maxParallelForks = 1
}
