Standardize Build
The build now uses spring build conventions to simplify the build Fixes gh-4284
This commit is contained in:
@@ -1,32 +0,0 @@
|
||||
// Preauth sample build file
|
||||
|
||||
apply plugin: 'war'
|
||||
apply plugin: 'jetty'
|
||||
|
||||
war.baseName = "sample"
|
||||
|
||||
def excludeModules = ['jsr250-api', 'ehcache', 'spring-jdbc', 'spring-tx']
|
||||
|
||||
configurations {
|
||||
excludeModules.each {name ->
|
||||
runtime.exclude module: name
|
||||
}
|
||||
|
||||
runtime.exclude group: 'org.aspectj'
|
||||
}
|
||||
|
||||
dependencies {
|
||||
providedCompile "javax.servlet:javax.servlet-api:3.0.1"
|
||||
|
||||
runtime project(':spring-security-web'),
|
||||
project(':spring-security-config'),
|
||||
"org.slf4j:jcl-over-slf4j:$slf4jVersion",
|
||||
"ch.qos.logback:logback-classic:$logbackVersion"
|
||||
|
||||
testCompile project(':spring-security-web'),
|
||||
project(':spring-security-config')
|
||||
}
|
||||
|
||||
jettyRun {
|
||||
userRealms = [jettyRun.class.classLoader.loadClass('org.mortbay.jetty.security.HashUserRealm').newInstance('Preauth Realm', "$projectDir/realm.properties")]
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
apply plugin: 'io.spring.convention.spring-sample-war'
|
||||
|
||||
dependencies {
|
||||
providedCompile 'javax.servlet:javax.servlet-api'
|
||||
|
||||
runtime project(':spring-security-config')
|
||||
runtime project(':spring-security-web')
|
||||
runtime slf4jDependencies
|
||||
|
||||
testCompile project(':spring-security-config')
|
||||
testCompile project(':spring-security-web')
|
||||
}
|
||||
|
||||
//jettyRun {
|
||||
// userRealms = [jettyRun.class.classLoader.loadClass('org.mortbay.jetty.security.HashUserRealm').newInstance('Preauth Realm' '$projectDir/realm.properties')]
|
||||
//}
|
||||
Reference in New Issue
Block a user