core.gradle 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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:$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. "com.fasterxml.jackson.core:jackson-databind:$jacksonDatabindVersion"
  23. included cryptoProject
  24. testCompile "commons-collections:commons-collections:$commonsCollectionsVersion",
  25. "org.springframework:spring-test:$springVersion",
  26. "org.slf4j:jcl-over-slf4j:$slf4jVersion",
  27. powerMockDependencies,
  28. "org.skyscreamer:jsonassert:$jsonassertVersion"
  29. testRuntime "org.hsqldb:hsqldb:$hsqlVersion"
  30. }
  31. classes.doLast {
  32. copy {
  33. from cryptoClasses
  34. into sourceSets.main.output.classesDir
  35. }
  36. }
  37. sourceJar.from cryptoProject.sourceSets.main.java
  38. configure(project.tasks.withType(Test)) {
  39. systemProperties['springSecurityVersion'] = version
  40. systemProperties['springVersion'] = springVersion
  41. }