2010-01-11 07:31:23 +08:00
|
|
|
// Tutorial sample build file
|
|
|
|
|
2010-03-29 06:54:41 +08:00
|
|
|
apply plugin: 'war'
|
|
|
|
apply plugin: 'jetty'
|
2010-01-11 07:31:23 +08:00
|
|
|
|
2013-08-07 00:31:45 +08:00
|
|
|
war.baseName = "sample"
|
|
|
|
|
2011-01-11 01:27:58 +08: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-11 07:31:23 +08:00
|
|
|
dependencies {
|
2012-11-29 07:56:03 +08:00
|
|
|
providedCompile "org.apache.tomcat:tomcat-servlet-api:$servletApiVersion"
|
2010-03-08 05:58:25 +08:00
|
|
|
|
2010-01-11 07:31:23 +08:00
|
|
|
compile project(':spring-security-core'),
|
|
|
|
"org.springframework:spring-beans:$springVersion",
|
|
|
|
"org.springframework:spring-web:$springVersion",
|
|
|
|
"org.springframework:spring-webmvc:$springVersion",
|
2010-07-23 08:57:15 +08:00
|
|
|
"org.slf4j:slf4j-api:$slf4jVersion"
|
2010-01-11 07:31:23 +08:00
|
|
|
|
|
|
|
runtime project(':spring-security-web'),
|
|
|
|
project(':spring-security-config'),
|
|
|
|
project(':spring-security-taglibs'),
|
2010-08-20 05:41:51 +08:00
|
|
|
"javax.servlet:jstl:$jstlVersion",
|
2010-07-23 08:57:15 +08:00
|
|
|
"org.slf4j:jcl-over-slf4j:$slf4jVersion",
|
|
|
|
"ch.qos.logback:logback-core:$logbackVersion",
|
|
|
|
"ch.qos.logback:logback-classic:$logbackVersion"
|
2010-07-21 06:45:20 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
jettyRun {
|
2012-06-30 01:59:22 +08:00
|
|
|
def httpConnector = jettyRunWar.class.classLoader.loadClass('org.mortbay.jetty.nio.SelectChannelConnector').newInstance()
|
2011-06-13 20:45:09 +08:00
|
|
|
httpConnector.port = 8080
|
|
|
|
httpConnector.confidentialPort = 8443
|
2012-06-30 01:59:22 +08:00
|
|
|
def httpsConnector = jettyRunWar.class.classLoader.loadClass('org.mortbay.jetty.security.SslSocketConnector').newInstance()
|
2011-06-13 20:45:09 +08:00
|
|
|
httpsConnector.port = 8443
|
2011-06-13 22:03:51 +08:00
|
|
|
httpsConnector.keystore = "$rootDir/samples/certificates/server.jks"
|
|
|
|
httpsConnector.keyPassword = 'password'
|
2011-06-13 20:45:09 +08:00
|
|
|
|
|
|
|
connectors = [httpConnector, httpsConnector]
|
2010-07-23 08:57:15 +08:00
|
|
|
}
|