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 springCoreDependency,
  12. 'aopalliance:aopalliance:1.0',
  13. "org.springframework:spring-aop:$springVersion",
  14. "org.springframework:spring-beans:$springVersion",
  15. "org.springframework:spring-context:$springVersion",
  16. "org.springframework:spring-expression:$springVersion"
  17. optional "net.sf.ehcache:ehcache-core:$ehcacheVersion",
  18. 'javax.annotation:jsr250-api:1.0',
  19. "org.aspectj:aspectjrt:$aspectjVersion",
  20. "org.springframework:spring-jdbc:$springVersion",
  21. "org.springframework:spring-tx:$springVersion"
  22. included cryptoProject
  23. testCompile 'commons-collections:commons-collections:3.2',
  24. "org.springframework:spring-test:$springVersion",
  25. "org.slf4j:jcl-over-slf4j:$slf4jVersion",
  26. powerMockDependencies
  27. testRuntime "org.hsqldb:hsqldb:$hsqlVersion"
  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(project.tasks.withType(Test)) {
  37. systemProperties['springSecurityVersion'] = version
  38. systemProperties['springVersion'] = springVersion
  39. }