2009-12-05 05:33:17 +08:00
|
|
|
// Ldap build file
|
|
|
|
|
2010-07-12 19:30:21 +08:00
|
|
|
apacheds_libs = [
|
|
|
|
"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'
|
|
|
|
]
|
|
|
|
|
2011-02-12 01:55:16 +08:00
|
|
|
configurations {
|
|
|
|
integrationTestCompile {
|
|
|
|
extendsFrom testCompile
|
|
|
|
}
|
|
|
|
integrationTestRuntime {
|
|
|
|
extendsFrom integrationTestCompile, testRuntime
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2009-12-05 05:33:17 +08:00
|
|
|
dependencies {
|
2010-01-11 07:31:23 +08:00
|
|
|
compile project(':spring-security-core'),
|
2009-12-05 05:33:17 +08:00
|
|
|
"org.springframework:spring-beans:$springVersion",
|
|
|
|
"org.springframework:spring-context:$springVersion",
|
|
|
|
"org.springframework:spring-tx:$springVersion",
|
|
|
|
'ldapsdk:ldapsdk:4.1'
|
2010-07-12 19:30:21 +08:00
|
|
|
apacheds_libs.collect {
|
|
|
|
compile (it) {
|
|
|
|
exclude group: 'org.slf4j'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2010-03-08 05:58:25 +08: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 19:30:21 +08:00
|
|
|
}
|
2009-12-05 05:33:17 +08:00
|
|
|
|
2011-02-12 01:55:16 +08:00
|
|
|
sourceSets {
|
|
|
|
integrationTest {
|
|
|
|
java.srcDir file('src/integration-test/java')
|
|
|
|
resources.srcDir file('src/integration-test/resources')
|
|
|
|
compileClasspath = sourceSets.main.classes + sourceSets.test.classes + configurations.integrationTestCompile
|
|
|
|
runtimeClasspath = classes + compileClasspath + configurations.integrationTestRuntime
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
task integrationTest(type: Test, dependsOn: jar) {
|
|
|
|
testClassesDir = sourceSets.integrationTest.classesDir
|
|
|
|
classpath = sourceSets.integrationTest.runtimeClasspath
|
|
|
|
include('**/ApacheDSServerIntegrationTests.class')
|
|
|
|
// exclude('**/OpenLDAPIntegrationTestSuite.class')
|
|
|
|
maxParallelForks = 1
|
|
|
|
systemProperties['apacheDSWorkDir'] = "${buildDir}/apacheDSWork"
|
|
|
|
}
|
|
|
|
|
|
|
|
task(ldapServer, dependsOn: 'integrationTestClasses', type: JavaExec) {
|
|
|
|
classpath = sourceSets.integrationTest.runtimeClasspath
|
|
|
|
main = 'org.springframework.security.ldap.ApacheDSServerIntegrationTests'
|
|
|
|
systemProperties['apacheDSWorkDir'] = "${buildDir}/apacheDSWork"
|
|
|
|
}
|
|
|
|
|