core.gradle 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. // Core build file
  2. // We don't define a module dependency on crypto to avoid creating a transitive dependency
  3. def cryptoProject = project(':spring-security-crypto')
  4. def cryptoClasses = cryptoProject.sourceSets.main.output
  5. configurations {
  6. included
  7. compile.extendsFrom included
  8. testCompile.exclude group: 'org.mockito', module: 'mockito-all'
  9. }
  10. dependencies {
  11. compile 'aopalliance:aopalliance:1.0',
  12. "org.springframework:spring-aop:$springVersion",
  13. "org.springframework:spring-beans:$springVersion",
  14. "org.springframework:spring-context:$springVersion",
  15. "org.springframework:spring-expression:$springVersion"
  16. optional "net.sf.ehcache:ehcache:$ehcacheVersion",
  17. 'javax.annotation:jsr250-api:1.0',
  18. "org.aspectj:aspectjrt:$aspectjVersion",
  19. "org.springframework:spring-jdbc:$springVersion",
  20. "org.springframework:spring-tx:$springVersion"
  21. included cryptoProject
  22. testCompile 'commons-collections:commons-collections:3.2',
  23. "org.springframework:spring-test:$springVersion",
  24. "org.slf4j:jcl-over-slf4j:$slf4jVersion",
  25. powerMockDependencies
  26. testRuntime "org.hsqldb:hsqldb:$hsqlVersion",
  27. "cglib:cglib-nodep:$cglibVersion"
  28. }
  29. classes.doLast {
  30. copy {
  31. from cryptoClasses
  32. into sourceSets.main.output.classesDir
  33. }
  34. }
  35. sourceJar.from cryptoProject.sourceSets.main.java
  36. configure([test]) {
  37. systemProperties['springSecurityVersion'] = version
  38. systemProperties['springVersion'] = springVersion
  39. }