Updates for 3.0.x autorepo support

This commit is contained in:
Rob Winch
2012-10-01 14:46:37 -05:00
parent 4c832fc946
commit 4f993d95b5
135 changed files with 2104 additions and 1682 deletions

View File

@@ -3,7 +3,7 @@
<parent>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-samples</artifactId>
<version>3.0.8.CI-SNAPSHOT</version>
<version>@pomVersion@</version>
</parent>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-samples-tutorial</artifactId>

View File

@@ -1,6 +1,10 @@
Run the application directly from the checked out source tree, using the command
This is the most basic sample web application for Spring Security.
mvn jetty:run
If you have gradle installed, you can run the application directly from the checked out source tree, using the command
gradle jettyRun
This will start jetty on port 8080, with SSL support on port 8443.
The 'scripts' directory contains simple Unix command-line scripts for exercising the application and displaying the results.

View File

@@ -3,6 +3,15 @@
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'
@@ -10,10 +19,28 @@ dependencies {
"org.springframework:spring-beans:$springVersion",
"org.springframework:spring-web:$springVersion",
"org.springframework:spring-webmvc:$springVersion",
"org.aspectj:aspectjrt:$aspectjVersion"
"org.aspectj:aspectjrt:$aspectjVersion",
"org.slf4j:slf4j-api:$slf4jVersion"
runtime project(':spring-security-web'),
project(':spring-security-config'),
project(':spring-security-taglibs'),
'log4j:log4j:1.2.15@jar'
}
"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]
}