28 lines
717 B
Groovy
28 lines
717 B
Groovy
// Preauth sample build file
|
|
|
|
apply plugin: 'war'
|
|
apply plugin: 'jetty'
|
|
|
|
def excludeModules = ['jsr250-api', 'ehcache', 'spring-jdbc', 'spring-tx']
|
|
|
|
configurations {
|
|
excludeModules.each {name ->
|
|
runtime.exclude module: name
|
|
}
|
|
|
|
runtime.exclude group: 'org.aspectj'
|
|
}
|
|
|
|
dependencies {
|
|
|
|
runtime project(':spring-security-web'),
|
|
project(':spring-security-config'),
|
|
"org.slf4j:jcl-over-slf4j:$slf4jVersion",
|
|
"ch.qos.logback:logback-classic:$logbackVersion"
|
|
}
|
|
|
|
jettyRun {
|
|
contextPath = "/preauth"
|
|
userRealms = [jettyRun.class.classLoader.loadClass('org.mortbay.jetty.security.HashUserRealm').newInstance('Preauth Realm', "$projectDir/realm.properties")]
|
|
}
|