Stripping out unnecessary dependencies from sample jars.
This commit is contained in:
parent
39b48c6d95
commit
19e56f4397
|
@ -3,10 +3,20 @@
|
||||||
apply plugin: 'war'
|
apply plugin: 'war'
|
||||||
apply plugin: 'jetty'
|
apply plugin: 'jetty'
|
||||||
|
|
||||||
|
def excludeModules = ['spring-security-acl', 'jsr250-api', 'ehcache', 'spring-jdbc', 'spring-tx']
|
||||||
|
|
||||||
configurations {
|
configurations {
|
||||||
casServer
|
casServer
|
||||||
}
|
}
|
||||||
|
|
||||||
|
configurations {
|
||||||
|
excludeModules.each {name ->
|
||||||
|
runtime.exclude module: name
|
||||||
|
}
|
||||||
|
|
||||||
|
runtime.exclude group: 'org.aspectj'
|
||||||
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
casServer "org.jasig.cas:cas-server-webapp:3.4.3.1@war"
|
casServer "org.jasig.cas:cas-server-webapp:3.4.3.1@war"
|
||||||
|
|
||||||
|
@ -20,7 +30,7 @@ dependencies {
|
||||||
|
|
||||||
def keystore = "$rootDir/samples/certificates/server.jks"
|
def keystore = "$rootDir/samples/certificates/server.jks"
|
||||||
|
|
||||||
jettyRun {
|
[jettyRun, jettyRunWar]*.configure {
|
||||||
contextPath = "/cas"
|
contextPath = "/cas"
|
||||||
def httpConnector = new org.mortbay.jetty.nio.SelectChannelConnector();
|
def httpConnector = new org.mortbay.jetty.nio.SelectChannelConnector();
|
||||||
httpConnector.port = 8080
|
httpConnector.port = 8080
|
||||||
|
@ -49,12 +59,12 @@ task casServer (type: org.gradle.api.plugins.jetty.JettyRunWar) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
task cas (dependsOn: [jettyRun, casServer]) {
|
task cas (dependsOn: [jettyRunWar, casServer]) {
|
||||||
}
|
}
|
||||||
|
|
||||||
gradle.taskGraph.whenReady {graph ->
|
gradle.taskGraph.whenReady {graph ->
|
||||||
if (graph.hasTask(cas)) {
|
if (graph.hasTask(cas)) {
|
||||||
jettyRun.dependsOn(casServer)
|
jettyRunWar.dependsOn(casServer)
|
||||||
casServer.daemon = true
|
casServer.daemon = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,6 +3,11 @@
|
||||||
apply plugin: 'war'
|
apply plugin: 'war'
|
||||||
apply plugin: 'jetty'
|
apply plugin: 'jetty'
|
||||||
|
|
||||||
|
configurations {
|
||||||
|
runtime.exclude module: 'jsr250-api'
|
||||||
|
runtime.exclude group: 'org.aspectj'
|
||||||
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
providedCompile 'javax.servlet:servlet-api:2.5@jar'
|
providedCompile 'javax.servlet:servlet-api:2.5@jar'
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,16 @@
|
||||||
apply plugin: 'war'
|
apply plugin: 'war'
|
||||||
apply plugin: 'jetty'
|
apply plugin: 'jetty'
|
||||||
|
|
||||||
|
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'
|
||||||
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
providedCompile 'javax.servlet:servlet-api:2.5@jar'
|
providedCompile 'javax.servlet:servlet-api:2.5@jar'
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,16 @@
|
||||||
apply plugin: 'war'
|
apply plugin: 'war'
|
||||||
apply plugin: 'jetty'
|
apply plugin: 'jetty'
|
||||||
|
|
||||||
|
def excludeModules = ['spring-security-acl', 'jsr250-api', 'ehcache', 'spring-jdbc', 'ldapsdk']
|
||||||
|
|
||||||
|
configurations {
|
||||||
|
excludeModules.each {name ->
|
||||||
|
runtime.exclude module: name
|
||||||
|
}
|
||||||
|
|
||||||
|
runtime.exclude group: 'org.aspectj'
|
||||||
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|
||||||
runtime project(':spring-security-web'),
|
runtime project(':spring-security-web'),
|
||||||
|
|
|
@ -3,6 +3,16 @@
|
||||||
apply plugin: 'war'
|
apply plugin: 'war'
|
||||||
apply plugin: 'jetty'
|
apply plugin: 'jetty'
|
||||||
|
|
||||||
|
def excludeModules = ['jsr250-api', 'ehcache', 'spring-jdbc', 'spring-tx']
|
||||||
|
|
||||||
|
configurations {
|
||||||
|
excludeModules.each {name ->
|
||||||
|
runtime.exclude module: name
|
||||||
|
}
|
||||||
|
|
||||||
|
runtime.exclude group: 'org.aspectj'
|
||||||
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|
||||||
runtime project(':spring-security-web'),
|
runtime project(':spring-security-web'),
|
||||||
|
|
|
@ -13,11 +13,7 @@
|
||||||
|
|
||||||
<debug />
|
<debug />
|
||||||
|
|
||||||
<global-method-security pre-post-annotations="enabled">
|
<global-method-security pre-post-annotations="enabled" />
|
||||||
<!-- AspectJ pointcut expression that locates our "post" method and applies security that way
|
|
||||||
<protect-pointcut expression="execution(* bigbank.*Service.post*(..))" access="ROLE_TELLER"/>
|
|
||||||
-->
|
|
||||||
</global-method-security>
|
|
||||||
|
|
||||||
<http pattern="/loggedout.jsp" security="none"/>
|
<http pattern="/loggedout.jsp" security="none"/>
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,16 @@
|
||||||
apply plugin: 'war'
|
apply plugin: 'war'
|
||||||
apply plugin: 'jetty'
|
apply plugin: 'jetty'
|
||||||
|
|
||||||
|
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'
|
||||||
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
providedCompile 'javax.servlet:servlet-api:2.5@jar'
|
providedCompile 'javax.servlet:servlet-api:2.5@jar'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue