2
0

preauth.gradle 717 B

123456789101112131415161718192021222324252627
  1. // Preauth sample build file
  2. apply plugin: 'war'
  3. apply plugin: 'jetty'
  4. def excludeModules = ['jsr250-api', 'ehcache', 'spring-jdbc', 'spring-tx']
  5. configurations {
  6. excludeModules.each {name ->
  7. runtime.exclude module: name
  8. }
  9. runtime.exclude group: 'org.aspectj'
  10. }
  11. dependencies {
  12. runtime project(':spring-security-web'),
  13. project(':spring-security-config'),
  14. "org.slf4j:jcl-over-slf4j:$slf4jVersion",
  15. "ch.qos.logback:logback-classic:$logbackVersion"
  16. }
  17. jettyRun {
  18. contextPath = "/preauth"
  19. userRealms = [jettyRun.class.classLoader.loadClass('org.mortbay.jetty.security.HashUserRealm').newInstance('Preauth Realm', "$projectDir/realm.properties")]
  20. }