Explorar o código

Skip EncryptorsTests when using <JDK 1.6 as AES isn't available

Luke Taylor %!s(int64=14) %!d(string=hai) anos
pai
achega
d686f64f26
Modificáronse 1 ficheiros con 6 adicións e 1 borrados
  1. 6 1
      crypto/crypto.gradle

+ 6 - 1
crypto/crypto.gradle

@@ -1,5 +1,10 @@
 // crypto module build file
 
-dependencies {
+jdkVersion = System.properties['java.version']
+isJdk6 = jdkVersion >= '1.6'
 
+test {
+    if (!isJdk6) {
+        exclude '**/EncryptorsTests.class'
+    }
 }