2009-12-04 16:33:17 -05:00
|
|
|
// Core build file
|
|
|
|
|
2011-06-09 19:01:25 -04:00
|
|
|
// We don't define a module dependency on crypto to avoid creating a transitive dependency
|
|
|
|
def cryptoProject = project(':spring-security-crypto')
|
2012-06-29 13:59:22 -04:00
|
|
|
def cryptoClasses = cryptoProject.sourceSets.main.output
|
2011-06-09 19:01:25 -04:00
|
|
|
|
2013-08-05 12:08:23 -04:00
|
|
|
configurations {
|
2015-03-23 12:14:26 -04:00
|
|
|
included
|
2013-08-05 12:08:23 -04:00
|
|
|
|
2015-03-23 12:14:26 -04:00
|
|
|
compile.extendsFrom included
|
2014-04-02 09:48:55 -04:00
|
|
|
|
2015-03-23 12:14:26 -04:00
|
|
|
testCompile.exclude group: 'org.mockito', module: 'mockito-all'
|
2013-08-05 12:08:23 -04:00
|
|
|
}
|
|
|
|
|
2009-12-04 16:33:17 -05:00
|
|
|
dependencies {
|
2015-03-23 12:14:26 -04:00
|
|
|
compile springCoreDependency,
|
|
|
|
'aopalliance:aopalliance:1.0',
|
|
|
|
"org.springframework:spring-aop:$springVersion",
|
|
|
|
"org.springframework:spring-beans:$springVersion",
|
|
|
|
"org.springframework:spring-context:$springVersion",
|
|
|
|
"org.springframework:spring-expression:$springVersion"
|
|
|
|
|
|
|
|
optional "net.sf.ehcache:ehcache:$ehcacheVersion",
|
|
|
|
'javax.annotation:jsr250-api:1.0',
|
|
|
|
"org.aspectj:aspectjrt:$aspectjVersion",
|
|
|
|
"org.springframework:spring-jdbc:$springVersion",
|
|
|
|
"org.springframework:spring-tx:$springVersion"
|
|
|
|
|
|
|
|
included cryptoProject
|
|
|
|
|
|
|
|
testCompile "commons-collections:commons-collections:$commonsCollectionsVersion",
|
|
|
|
"org.springframework:spring-test:$springVersion",
|
|
|
|
"org.slf4j:jcl-over-slf4j:$slf4jVersion",
|
|
|
|
powerMockDependencies
|
|
|
|
|
|
|
|
testRuntime "org.hsqldb:hsqldb:$hsqlVersion"
|
2009-12-04 16:33:17 -05:00
|
|
|
}
|
2011-03-07 12:44:38 -05:00
|
|
|
|
2011-06-09 19:01:25 -04:00
|
|
|
classes.doLast {
|
2015-03-23 12:14:26 -04:00
|
|
|
copy {
|
|
|
|
from cryptoClasses
|
|
|
|
into sourceSets.main.output.classesDir
|
|
|
|
}
|
2011-06-09 19:01:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
sourceJar.from cryptoProject.sourceSets.main.java
|
2011-03-07 12:44:38 -05:00
|
|
|
|
2014-04-11 10:57:18 -04:00
|
|
|
configure(project.tasks.withType(Test)) {
|
2015-03-23 12:14:26 -04:00
|
|
|
systemProperties['springSecurityVersion'] = version
|
|
|
|
systemProperties['springVersion'] = springVersion
|
2011-06-14 13:31:56 -04:00
|
|
|
}
|