2010-03-29 06:54:41 +08:00
|
|
|
apply plugin: 'java'
|
|
|
|
apply plugin: 'eclipse'
|
2010-03-03 23:40:57 +08:00
|
|
|
|
2010-06-18 09:07:12 +08:00
|
|
|
springVersion = '3.0.3.RELEASE'
|
2010-03-03 23:40:57 +08:00
|
|
|
springLdapVersion = '1.3.0.RELEASE'
|
|
|
|
ehcacheVersion = '1.6.2'
|
|
|
|
aspectjVersion = '1.6.8'
|
|
|
|
apacheDsVersion = '1.5.5'
|
2010-07-21 06:45:20 +08:00
|
|
|
jstlVersion = '1.2'
|
2010-03-03 23:40:57 +08:00
|
|
|
jettyVersion = '6.1.22'
|
|
|
|
hsqlVersion = '1.8.0.10'
|
2010-07-12 19:30:21 +08:00
|
|
|
slf4jVersion = '1.6.1'
|
|
|
|
logbackVersion = '0.9.24'
|
2010-03-03 23:40:57 +08:00
|
|
|
|
|
|
|
configurations {
|
2010-07-23 08:57:15 +08:00
|
|
|
// Configuration which is ONLY used for compileJava and will not be inherited by any others
|
|
|
|
// Revisit post Gradle 1.0
|
|
|
|
compileOnly
|
|
|
|
// Used to identify deps whcih should be marked as "provided" in maven poms
|
2010-03-03 23:40:57 +08:00
|
|
|
provided
|
|
|
|
compile.extendsFrom provided
|
2010-07-12 19:30:21 +08:00
|
|
|
compile.transitive = false
|
2010-07-27 09:16:39 +08:00
|
|
|
testCompile.transitive = false
|
2010-03-03 23:40:57 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2010-07-23 08:57:15 +08:00
|
|
|
compileOnly 'commons-logging:commons-logging:1.1.1'
|
2010-03-03 23:40:57 +08:00
|
|
|
|
2010-03-08 05:58:25 +08:00
|
|
|
compile ("org.springframework:spring-core:$springVersion") {
|
|
|
|
exclude(group: 'commons-logging', module: 'commons-logging')
|
|
|
|
}
|
|
|
|
|
2010-03-03 23:40:57 +08:00
|
|
|
testCompile 'junit:junit:4.7',
|
2010-03-10 07:39:07 +08:00
|
|
|
'org.mockito:mockito-core:1.8.3',
|
2010-03-03 23:40:57 +08:00
|
|
|
'org.jmock:jmock:2.5.1',
|
|
|
|
'org.jmock:jmock-junit4:2.5.1',
|
|
|
|
'org.hamcrest:hamcrest-core:1.1',
|
|
|
|
'org.hamcrest:hamcrest-library:1.1',
|
|
|
|
"org.springframework:spring-test:$springVersion"
|
2010-07-12 19:30:21 +08:00
|
|
|
|
|
|
|
// Use slf4j/logback for logging
|
2010-07-27 09:16:39 +08:00
|
|
|
testRuntime "org.slf4j:jcl-over-slf4j:$slf4jVersion",
|
2010-07-12 19:30:21 +08:00
|
|
|
"ch.qos.logback:logback-classic:$logbackVersion"
|
2010-03-03 23:40:57 +08:00
|
|
|
}
|
|
|
|
|
2010-07-12 19:30:21 +08:00
|
|
|
[configurations.runtime, configurations.default]*.exclude(module: 'commons-logging')
|
|
|
|
|
2010-07-23 08:57:15 +08:00
|
|
|
sourceSets.main.compileClasspath += configurations.compileOnly
|
|
|
|
|
2010-03-03 23:40:57 +08:00
|
|
|
test {
|
2010-03-08 07:53:33 +08:00
|
|
|
onlyIf {
|
|
|
|
!project.hasProperty('skipTests')
|
|
|
|
}
|
2010-03-03 23:40:57 +08:00
|
|
|
jvmArgs = ['-ea', '-Xms128m', '-Xmx500m', '-XX:MaxPermSize=128m']
|
|
|
|
}
|
|
|
|
|