Fix spring4 test

This commit is contained in:
Rob Winch 2014-02-19 16:13:30 -06:00
parent 4a1a2dfed4
commit de4ed136ea
4 changed files with 4 additions and 4 deletions

View File

@ -43,7 +43,7 @@ classes.doLast {
sourceJar.from cryptoProject.sourceSets.main.java
configure([test,spring4Test]) {
configure([test]) {
systemProperties['springSecurityVersion'] = version
systemProperties['springVersion'] = springVersion
}

View File

@ -23,7 +23,7 @@ public class SpringSecurityCoreVersion {
*/
public static final long SERIAL_VERSION_UID = 320L;
static final String MIN_SPRING_VERSION = "3.2.8.RELEASE";
static final String MIN_SPRING_VERSION = "4.0.2.RELEASE";
static {
performVersionChecks();

View File

@ -4,7 +4,7 @@
// isJdk6 = jdkVersion >= '1.6'
int maxAESKeySize = javax.crypto.Cipher.getMaxAllowedKeyLength('AES')
configure([test,spring4Test]) {
configure(test) {
if (maxAESKeySize < 256) {
println "AES keysize limited to $maxAESKeySize, skipping EncryptorsTests"
exclude '**/EncryptorsTests.class'

View File

@ -20,6 +20,6 @@ dependencies {
testRuntime "javax.servlet:jstl:$jstlVersion"
}
configure([test,spring4Test]) {
configure(test) {
systemProperties['springSecurityVersion'] = version
}