2009-12-04 21:33:17 +00:00
|
|
|
// Core build file
|
|
|
|
|
2011-06-10 00:01:25 +01: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 12:59:22 -05:00
|
|
|
def cryptoClasses = cryptoProject.sourceSets.main.output
|
2011-06-10 00:01:25 +01:00
|
|
|
|
2013-08-05 11:08:23 -05:00
|
|
|
configurations {
|
2015-03-23 11:14:26 -05:00
|
|
|
included
|
2013-08-05 11:08:23 -05:00
|
|
|
|
2015-03-23 11:14:26 -05:00
|
|
|
compile.extendsFrom included
|
2014-04-02 08:48:55 -05:00
|
|
|
|
2015-03-23 11:14:26 -05:00
|
|
|
testCompile.exclude group: 'org.mockito', module: 'mockito-all'
|
2013-08-05 11:08:23 -05:00
|
|
|
}
|
|
|
|
|
2009-12-04 21:33:17 +00:00
|
|
|
dependencies {
|
2015-03-23 11:14:26 -05: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 21:33:17 +00:00
|
|
|
}
|
2011-03-07 17:44:38 +00:00
|
|
|
|
2011-06-10 00:01:25 +01:00
|
|
|
classes.doLast {
|
2015-03-23 11:14:26 -05:00
|
|
|
copy {
|
|
|
|
from cryptoClasses
|
|
|
|
into sourceSets.main.output.classesDir
|
|
|
|
}
|
2011-06-10 00:01:25 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
sourceJar.from cryptoProject.sourceSets.main.java
|
2011-03-07 17:44:38 +00:00
|
|
|
|
2014-04-11 09:57:18 -05:00
|
|
|
configure(project.tasks.withType(Test)) {
|
2015-03-23 11:14:26 -05:00
|
|
|
systemProperties['springSecurityVersion'] = version
|
|
|
|
systemProperties['springVersion'] = springVersion
|
2011-06-14 18:31:56 +01:00
|
|
|
}
|