core.gradle 1.3 KB

123456789101112131415161718192021222324252627282930313233
  1. // Core build file
  2. dependencies {
  3. compile 'aopalliance:aopalliance:1.0',
  4. "net.sf.ehcache:ehcache:$ehcacheVersion",
  5. "org.springframework:spring-aop:$springVersion",
  6. "org.springframework:spring-beans:$springVersion",
  7. "org.springframework:spring-context:$springVersion",
  8. "org.springframework:spring-expression:$springVersion",
  9. "org.springframework:spring-jdbc:$springVersion",
  10. "org.springframework:spring-tx:$springVersion",
  11. "org.springframework:spring-web:$springVersion",
  12. "org.aspectj:aspectjrt:$aspectjVersion",
  13. 'javax.annotation:jsr250-api:1.0'
  14. testCompile 'commons-collections:commons-collections:3.2',
  15. "org.springframework:spring-test:$springVersion",
  16. "org.slf4j:jcl-over-slf4j:$slf4jVersion"
  17. testRuntime "hsqldb:hsqldb:$hsqlVersion",
  18. "cglib:cglib-nodep:$cglibVersion"
  19. }
  20. // jdkVersion = System.properties['java.version']
  21. // isJdk6 = jdkVersion >= '1.6'
  22. int maxAESKeySize = javax.crypto.Cipher.getMaxAllowedKeyLength('AES')
  23. test {
  24. if (maxAESKeySize < 256) {
  25. logger.warn("AES keysize limited to $maxAESKeySize, skipping EncryptorsTests")
  26. exclude '**/EncryptorsTests.class'
  27. }
  28. }