mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-07-12 13:23:29 +00:00
Fix spring4 test
This commit is contained in:
parent
4a1a2dfed4
commit
de4ed136ea
@ -43,7 +43,7 @@ classes.doLast {
|
|||||||
|
|
||||||
sourceJar.from cryptoProject.sourceSets.main.java
|
sourceJar.from cryptoProject.sourceSets.main.java
|
||||||
|
|
||||||
configure([test,spring4Test]) {
|
configure([test]) {
|
||||||
systemProperties['springSecurityVersion'] = version
|
systemProperties['springSecurityVersion'] = version
|
||||||
systemProperties['springVersion'] = springVersion
|
systemProperties['springVersion'] = springVersion
|
||||||
}
|
}
|
@ -23,7 +23,7 @@ public class SpringSecurityCoreVersion {
|
|||||||
*/
|
*/
|
||||||
public static final long SERIAL_VERSION_UID = 320L;
|
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 {
|
static {
|
||||||
performVersionChecks();
|
performVersionChecks();
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
// isJdk6 = jdkVersion >= '1.6'
|
// isJdk6 = jdkVersion >= '1.6'
|
||||||
int maxAESKeySize = javax.crypto.Cipher.getMaxAllowedKeyLength('AES')
|
int maxAESKeySize = javax.crypto.Cipher.getMaxAllowedKeyLength('AES')
|
||||||
|
|
||||||
configure([test,spring4Test]) {
|
configure(test) {
|
||||||
if (maxAESKeySize < 256) {
|
if (maxAESKeySize < 256) {
|
||||||
println "AES keysize limited to $maxAESKeySize, skipping EncryptorsTests"
|
println "AES keysize limited to $maxAESKeySize, skipping EncryptorsTests"
|
||||||
exclude '**/EncryptorsTests.class'
|
exclude '**/EncryptorsTests.class'
|
||||||
|
@ -20,6 +20,6 @@ dependencies {
|
|||||||
testRuntime "javax.servlet:jstl:$jstlVersion"
|
testRuntime "javax.servlet:jstl:$jstlVersion"
|
||||||
}
|
}
|
||||||
|
|
||||||
configure([test,spring4Test]) {
|
configure(test) {
|
||||||
systemProperties['springSecurityVersion'] = version
|
systemProperties['springSecurityVersion'] = version
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user