2010-07-26 21:16:39 -04:00
|
|
|
// Preauth sample build file
|
|
|
|
|
|
|
|
apply plugin: 'war'
|
|
|
|
apply plugin: 'jetty'
|
|
|
|
|
2013-08-06 12:31:45 -04:00
|
|
|
war.baseName = "sample"
|
|
|
|
|
2011-01-10 12:27:58 -05:00
|
|
|
def excludeModules = ['jsr250-api', 'ehcache', 'spring-jdbc', 'spring-tx']
|
|
|
|
|
|
|
|
configurations {
|
2015-03-23 12:14:26 -04:00
|
|
|
excludeModules.each {name ->
|
|
|
|
runtime.exclude module: name
|
|
|
|
}
|
2011-01-10 12:27:58 -05:00
|
|
|
|
2015-03-23 12:14:26 -04:00
|
|
|
runtime.exclude group: 'org.aspectj'
|
2011-01-10 12:27:58 -05:00
|
|
|
}
|
|
|
|
|
2010-07-26 21:16:39 -04:00
|
|
|
dependencies {
|
2015-05-07 11:10:20 -04:00
|
|
|
providedCompile "javax.servlet:javax.servlet-api:3.0.1"
|
2010-07-26 21:16:39 -04:00
|
|
|
|
2015-03-23 12:14:26 -04:00
|
|
|
runtime project(':spring-security-web'),
|
|
|
|
project(':spring-security-config'),
|
|
|
|
"org.slf4j:jcl-over-slf4j:$slf4jVersion",
|
|
|
|
"ch.qos.logback:logback-classic:$logbackVersion"
|
2015-05-07 11:10:20 -04:00
|
|
|
|
|
|
|
testCompile project(':spring-security-web'),
|
|
|
|
project(':spring-security-config')
|
2010-07-26 21:16:39 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
jettyRun {
|
2015-03-23 12:14:26 -04:00
|
|
|
userRealms = [jettyRun.class.classLoader.loadClass('org.mortbay.jetty.security.HashUserRealm').newInstance('Preauth Realm', "$projectDir/realm.properties")]
|
2010-07-26 21:16:39 -04:00
|
|
|
}
|