2009-12-04 16:33:17 -05:00
|
|
|
// Ldap build file
|
|
|
|
|
|
|
|
dependencies {
|
2010-01-10 18:31:23 -05:00
|
|
|
compile project(':spring-security-core'),
|
2009-12-04 16:33:17 -05:00
|
|
|
"org.springframework:spring-beans:$springVersion",
|
|
|
|
"org.springframework:spring-context:$springVersion",
|
2013-07-16 16:15:42 -04:00
|
|
|
"org.springframework:spring-tx:$springVersion"
|
|
|
|
|
|
|
|
optional "org.apache.directory.server:apacheds-core:$apacheDsVersion",
|
|
|
|
"org.apache.directory.server:apacheds-core-entry:$apacheDsVersion",
|
|
|
|
"org.apache.directory.server:apacheds-protocol-shared:$apacheDsVersion",
|
|
|
|
"org.apache.directory.server:apacheds-protocol-ldap:$apacheDsVersion",
|
|
|
|
"org.apache.directory.server:apacheds-server-jndi:$apacheDsVersion",
|
|
|
|
'org.apache.directory.shared:shared-ldap:0.9.15',
|
|
|
|
'ldapsdk:ldapsdk:4.1'
|
2010-07-12 07:30:21 -04:00
|
|
|
|
2010-03-07 16:58:25 -05:00
|
|
|
compile ("org.springframework.ldap:spring-ldap-core:$springLdapVersion") {
|
|
|
|
exclude(group: 'commons-logging', module: 'commons-logging')
|
|
|
|
exclude(group: 'org.springframework', module: 'spring-core')
|
|
|
|
exclude(group: 'org.springframework', module: 'spring-tx')
|
|
|
|
exclude(group: 'org.springframework', module: 'spring-beans')
|
|
|
|
}
|
2010-07-12 07:30:21 -04:00
|
|
|
}
|
2009-12-04 16:33:17 -05:00
|
|
|
|
2011-02-14 09:57:30 -05:00
|
|
|
integrationTest {
|
2011-02-11 12:55:16 -05:00
|
|
|
include('**/ApacheDSServerIntegrationTests.class')
|
|
|
|
// exclude('**/OpenLDAPIntegrationTestSuite.class')
|
|
|
|
maxParallelForks = 1
|
|
|
|
systemProperties['apacheDSWorkDir'] = "${buildDir}/apacheDSWork"
|
|
|
|
}
|
|
|
|
|
2011-03-25 18:53:21 -04:00
|
|
|
// Runs a server for running the integration tests against (from an IDE, for example)
|
2011-02-11 12:55:16 -05:00
|
|
|
task(ldapServer, dependsOn: 'integrationTestClasses', type: JavaExec) {
|
|
|
|
classpath = sourceSets.integrationTest.runtimeClasspath
|
|
|
|
main = 'org.springframework.security.ldap.ApacheDSServerIntegrationTests'
|
|
|
|
systemProperties['apacheDSWorkDir'] = "${buildDir}/apacheDSWork"
|
|
|
|
}
|
|
|
|
|