core.gradle 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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-core:$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. }
  28. classes.doLast {
  29. copy {
  30. from cryptoClasses
  31. into sourceSets.main.output.classesDir
  32. }
  33. }
  34. sourceJar.from cryptoProject.sourceSets.main.java
  35. configure(project.tasks.withType(Test)) {
  36. systemProperties['springSecurityVersion'] = version
  37. systemProperties['springVersion'] = springVersion
  38. }