2009-12-04 21:33:17 +00:00
|
|
|
// Web module build file
|
2011-07-09 17:31:25 -05:00
|
|
|
configurations {
|
|
|
|
servlet3Test
|
|
|
|
servlet3Test.exclude group: 'javax.servlet', name: 'sevlet-api'
|
|
|
|
}
|
2009-12-04 21:33:17 +00:00
|
|
|
|
|
|
|
dependencies {
|
2010-01-10 23:31:23 +00:00
|
|
|
compile project(':spring-security-core'),
|
2009-12-04 21:33:17 +00:00
|
|
|
'aopalliance:aopalliance:1.0',
|
2010-01-13 00:44:05 +00:00
|
|
|
"org.springframework:spring-aop:$springVersion",
|
2009-12-04 21:33:17 +00:00
|
|
|
"org.springframework:spring-beans:$springVersion",
|
|
|
|
"org.springframework:spring-context:$springVersion",
|
|
|
|
"org.springframework:spring-expression:$springVersion",
|
|
|
|
"org.springframework:spring-jdbc:$springVersion",
|
|
|
|
"org.springframework:spring-tx:$springVersion",
|
2010-07-12 12:30:21 +01:00
|
|
|
"org.springframework:spring-web:$springVersion"
|
2010-01-13 00:44:05 +00:00
|
|
|
|
|
|
|
provided 'javax.servlet:servlet-api:2.5'
|
|
|
|
|
2011-07-09 17:31:25 -05:00
|
|
|
servlet3Test 'org.jboss.spec.javax.servlet:jboss-servlet-api_3.0_spec:1.0.0.Final'
|
|
|
|
|
2010-09-13 13:12:45 -05:00
|
|
|
testCompile project(':spring-security-core').sourceSets.test.classes,
|
|
|
|
'commons-codec:commons-codec:1.3',
|
2010-07-12 12:30:21 +01:00
|
|
|
"org.springframework:spring-test:$springVersion"
|
2010-05-24 17:01:19 +01:00
|
|
|
testRuntime "hsqldb:hsqldb:$hsqlVersion"
|
2009-12-04 21:33:17 +00:00
|
|
|
}
|
2011-07-09 17:31:25 -05:00
|
|
|
|
|
|
|
configurations.testRuntime.allDependencies.each {
|
|
|
|
if( !(it.group == 'javax.servlet' && it.name == 'servlet-api') ) {
|
|
|
|
configurations.servlet3Test.addDependency it
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
test {
|
|
|
|
exclude '**/*Servlet3Tests.class'
|
|
|
|
}
|
|
|
|
|
|
|
|
task servlet3Test(type: Test, dependsOn: testClasses) {
|
|
|
|
testClassesDir = sourceSets.test.classesDir
|
|
|
|
logging.captureStandardOutput(LogLevel.INFO)
|
|
|
|
classpath = sourceSets.main.classes + sourceSets.test.classes + configurations.servlet3Test
|
|
|
|
maxParallelForks = 1
|
|
|
|
testReport = false
|
|
|
|
include '**/*Servlet3Tests.class'
|
|
|
|
}
|
|
|
|
check.dependsOn servlet3Test
|