2010-01-10 18:31:23 -05:00
|
|
|
// Tutorial sample build file
|
|
|
|
|
2010-03-28 18:54:41 -04:00
|
|
|
apply plugin: 'war'
|
|
|
|
apply plugin: 'jetty'
|
2010-01-10 18:31:23 -05:00
|
|
|
|
2013-08-06 12:31:45 -04:00
|
|
|
war.baseName = "sample"
|
|
|
|
|
2011-01-10 12:27:58 -05:00
|
|
|
def excludeModules = ['spring-security-acl', 'jsr250-api', 'ehcache', 'spring-jdbc', 'spring-tx']
|
|
|
|
|
|
|
|
configurations {
|
|
|
|
excludeModules.each {name ->
|
|
|
|
runtime.exclude module: name
|
|
|
|
}
|
|
|
|
|
|
|
|
runtime.exclude group: 'org.aspectj'
|
|
|
|
}
|
|
|
|
|
2010-01-10 18:31:23 -05:00
|
|
|
dependencies {
|
2012-11-28 18:56:03 -05:00
|
|
|
providedCompile "org.apache.tomcat:tomcat-servlet-api:$servletApiVersion"
|
2010-03-07 16:58:25 -05:00
|
|
|
|
2010-01-10 18:31:23 -05:00
|
|
|
compile project(':spring-security-core'),
|
|
|
|
"org.springframework:spring-beans:$springVersion",
|
|
|
|
"org.springframework:spring-web:$springVersion",
|
|
|
|
"org.springframework:spring-webmvc:$springVersion",
|
2010-07-22 20:57:15 -04:00
|
|
|
"org.slf4j:slf4j-api:$slf4jVersion"
|
2010-01-10 18:31:23 -05:00
|
|
|
|
|
|
|
runtime project(':spring-security-web'),
|
|
|
|
project(':spring-security-config'),
|
|
|
|
project(':spring-security-taglibs'),
|
2010-08-19 17:41:51 -04:00
|
|
|
"javax.servlet:jstl:$jstlVersion",
|
2010-07-22 20:57:15 -04:00
|
|
|
"org.slf4j:jcl-over-slf4j:$slf4jVersion",
|
|
|
|
"ch.qos.logback:logback-core:$logbackVersion",
|
|
|
|
"ch.qos.logback:logback-classic:$logbackVersion"
|
2010-07-20 18:45:20 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
jettyRun {
|
2012-06-29 13:59:22 -04:00
|
|
|
def httpConnector = jettyRunWar.class.classLoader.loadClass('org.mortbay.jetty.nio.SelectChannelConnector').newInstance()
|
2011-06-13 08:45:09 -04:00
|
|
|
httpConnector.port = 8080
|
|
|
|
httpConnector.confidentialPort = 8443
|
2012-06-29 13:59:22 -04:00
|
|
|
def httpsConnector = jettyRunWar.class.classLoader.loadClass('org.mortbay.jetty.security.SslSocketConnector').newInstance()
|
2011-06-13 08:45:09 -04:00
|
|
|
httpsConnector.port = 8443
|
2011-06-13 10:03:51 -04:00
|
|
|
httpsConnector.keystore = "$rootDir/samples/certificates/server.jks"
|
|
|
|
httpsConnector.keyPassword = 'password'
|
2011-06-13 08:45:09 -04:00
|
|
|
|
|
|
|
connectors = [httpConnector, httpsConnector]
|
2010-07-22 20:57:15 -04:00
|
|
|
}
|