spring-security/samples/xml/cas/spring-security-samples-xml...

26 lines
662 B
Groovy

apply plugin: 'io.spring.convention.spring-sample-war'
def keystore = "$rootDir/samples/certificates/server.jks"
def password = 'password'
gretty {
httpsEnabled = true
httpsPort = 8443
sslKeyStorePath = keystore
sslKeyStorePassword = password
jvmArgs = ["-Djavax.net.ssl.trustStore=${keystore}",
"-Djavax.net.ssl.trustStorePassword=${password}",
"-Dcas.server.host=localhost:$httpsPort",
"-Dcas.service.host=localhost:$httpsPort"]
}
farm {
webapp ':spring-security-samples-xml-casserver'
webapp ':spring-security-samples-xml-cassample'
}
task cas(dependsOn: 'farmRunWar') {
group 'Gretty tasks'
description 'Run CAS Server and Sample'
}