You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
807 B
32 lines
807 B
// Preauth sample build file |
|
|
|
apply plugin: 'war' |
|
apply plugin: 'jetty' |
|
|
|
war.baseName = "sample" |
|
|
|
def excludeModules = ['jsr250-api', 'ehcache', 'spring-jdbc', 'spring-tx'] |
|
|
|
configurations { |
|
excludeModules.each {name -> |
|
runtime.exclude module: name |
|
} |
|
|
|
runtime.exclude group: 'org.aspectj' |
|
} |
|
|
|
dependencies { |
|
providedCompile "javax.servlet:javax.servlet-api:3.0.1" |
|
|
|
runtime project(':spring-security-web'), |
|
project(':spring-security-config'), |
|
"org.slf4j:jcl-over-slf4j:$slf4jVersion", |
|
"ch.qos.logback:logback-classic:$logbackVersion" |
|
|
|
testCompile project(':spring-security-web'), |
|
project(':spring-security-config') |
|
} |
|
|
|
jettyRun { |
|
userRealms = [jettyRun.class.classLoader.loadClass('org.mortbay.jetty.security.HashUserRealm').newInstance('Preauth Realm', "$projectDir/realm.properties")] |
|
}
|
|
|