core.gradle 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  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.aspectj:aspectjrt:$aspectjVersion",
  12. 'javax.annotation:jsr250-api:1.0'
  13. testCompile 'commons-collections:commons-collections:3.2',
  14. "org.springframework:spring-test:$springVersion",
  15. "org.slf4j:jcl-over-slf4j:$slf4jVersion"
  16. testRuntime "hsqldb:hsqldb:$hsqlVersion",
  17. "cglib:cglib-nodep:$cglibVersion"
  18. }
  19. // jdkVersion = System.properties['java.version']
  20. // isJdk6 = jdkVersion >= '1.6'
  21. int maxAESKeySize = javax.crypto.Cipher.getMaxAllowedKeyLength('AES')
  22. test {
  23. systemProperties['springSecurityVersion'] = version
  24. systemProperties['springVersion'] = springVersion
  25. if (maxAESKeySize < 256) {
  26. logger.warn("AES keysize limited to $maxAESKeySize, skipping EncryptorsTests")
  27. exclude '**/EncryptorsTests.class'
  28. }
  29. }