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.
46 lines
1.6 KiB
46 lines
1.6 KiB
// Tutorial sample build file |
|
|
|
apply plugin: 'war' |
|
apply plugin: 'jetty' |
|
|
|
def excludeModules = ['spring-security-acl', 'jsr250-api', 'ehcache', 'spring-jdbc', 'spring-tx'] |
|
|
|
configurations { |
|
excludeModules.each {name -> |
|
runtime.exclude module: name |
|
} |
|
|
|
} |
|
|
|
dependencies { |
|
providedCompile 'javax.servlet:servlet-api:2.5@jar' |
|
|
|
compile project(':spring-security-core'), |
|
"org.springframework:spring-beans:$springVersion", |
|
"org.springframework:spring-web:$springVersion", |
|
"org.springframework:spring-webmvc:$springVersion", |
|
"org.aspectj:aspectjrt:$aspectjVersion", |
|
"org.slf4j:slf4j-api:$slf4jVersion" |
|
|
|
runtime project(':spring-security-web'), |
|
project(':spring-security-config'), |
|
project(':spring-security-taglibs'), |
|
"javax.servlet:jstl:$jstlVersion", |
|
"org.slf4j:jcl-over-slf4j:$slf4jVersion", |
|
"ch.qos.logback:logback-core:$logbackVersion", |
|
"ch.qos.logback:logback-classic:$logbackVersion" |
|
} |
|
|
|
jettyRun { |
|
contextPath = "/tutorial" |
|
|
|
def httpConnector = jettyRunWar.class.classLoader.loadClass('org.mortbay.jetty.nio.SelectChannelConnector').newInstance() |
|
httpConnector.port = 8080 |
|
httpConnector.confidentialPort = 8443 |
|
def httpsConnector = jettyRunWar.class.classLoader.loadClass('org.mortbay.jetty.security.SslSocketConnector').newInstance() |
|
httpsConnector.port = 8443 |
|
httpsConnector.keystore = "$rootDir/samples/certificates/server.jks" |
|
httpsConnector.keyPassword = 'password' |
|
|
|
connectors = [httpConnector, httpsConnector] |
|
}
|
|
|