core.gradle 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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.classes
  5. dependencies {
  6. compile 'aopalliance:aopalliance:1.0',
  7. "net.sf.ehcache:ehcache:$ehcacheVersion",
  8. "org.springframework:spring-aop:$springVersion",
  9. "org.springframework:spring-beans:$springVersion",
  10. "org.springframework:spring-context:$springVersion",
  11. "org.springframework:spring-expression:$springVersion",
  12. "org.springframework:spring-jdbc:$springVersion",
  13. "org.springframework:spring-tx:$springVersion",
  14. "org.springframework:spring-web:$springVersion",
  15. "org.aspectj:aspectjrt:$aspectjVersion",
  16. 'javax.annotation:jsr250-api:1.0'
  17. testCompile 'commons-collections:commons-collections:3.2',
  18. "org.springframework:spring-test:$springVersion",
  19. "org.slf4j:jcl-over-slf4j:$slf4jVersion"
  20. testRuntime "hsqldb:hsqldb:$hsqlVersion"
  21. }
  22. compileJava.dependsOn cryptoProject.compileJava
  23. classes.dependsOn cryptoProject.classes
  24. classes.doLast {
  25. copy {
  26. from cryptoClasses
  27. into sourceSets.main.classesDir
  28. }
  29. }
  30. sourceSets.main.compileClasspath += cryptoClasses
  31. sourceSets.test.compileClasspath += cryptoClasses
  32. sourceJar.from cryptoProject.sourceSets.main.java