spring-security/crypto/crypto.gradle

16 lines
436 B
Groovy
Raw Normal View History

// crypto module build file
// jdkVersion = System.properties['java.version']
// isJdk6 = jdkVersion >= '1.6'
int maxAESKeySize = javax.crypto.Cipher.getMaxAllowedKeyLength('AES')
2014-04-11 10:57:18 -04:00
configure(project.tasks.withType(Test)) {
2015-03-23 12:14:26 -04:00
if (maxAESKeySize < 256) {
println "AES keysize limited to $maxAESKeySize, skipping EncryptorsTests"
exclude '**/EncryptorsTests.class'
}
}
dependencies {
optional 'org.bouncycastle:bcpkix-jdk15on:1.54'
}