2
0

tutorial.gradle 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // Tutorial sample build file
  2. apply plugin: 'war'
  3. apply plugin: 'jetty'
  4. def excludeModules = ['spring-security-acl', '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. providedCompile 'javax.servlet:servlet-api:2.5@jar'
  13. compile project(':spring-security-core'),
  14. "org.springframework:spring-beans:$springVersion",
  15. "org.springframework:spring-web:$springVersion",
  16. "org.springframework:spring-webmvc:$springVersion",
  17. "org.slf4j:slf4j-api:$slf4jVersion"
  18. runtime project(':spring-security-web'),
  19. project(':spring-security-config'),
  20. project(':spring-security-taglibs'),
  21. "javax.servlet:jstl:$jstlVersion",
  22. "org.slf4j:jcl-over-slf4j:$slf4jVersion",
  23. "ch.qos.logback:logback-core:$logbackVersion",
  24. "ch.qos.logback:logback-classic:$logbackVersion"
  25. }
  26. jettyRun {
  27. contextPath = "/tutorial"
  28. def httpConnector = jettyRunWar.class.classLoader.loadClass('org.mortbay.jetty.nio.SelectChannelConnector').newInstance()
  29. httpConnector.port = 8080
  30. httpConnector.confidentialPort = 8443
  31. def httpsConnector = jettyRunWar.class.classLoader.loadClass('org.mortbay.jetty.security.SslSocketConnector').newInstance()
  32. httpsConnector.port = 8443
  33. httpsConnector.keystore = "$rootDir/samples/certificates/server.jks"
  34. httpsConnector.keyPassword = 'password'
  35. connectors = [httpConnector, httpsConnector]
  36. }