spring-security-core.gradle 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. apply plugin: 'io.spring.convention.spring-module'
  2. def includeProject = project(':spring-security-crypto')
  3. configurations {
  4. tests
  5. published.extendsFrom tests, archives
  6. included
  7. compile.extendsFrom included
  8. }
  9. dependencies {
  10. compile 'aopalliance:aopalliance'
  11. compile 'commons-logging:commons-logging'
  12. compile 'org.springframework:spring-aop'
  13. compile 'org.springframework:spring-beans'
  14. compile 'org.springframework:spring-context'
  15. compile 'org.springframework:spring-core'
  16. compile 'org.springframework:spring-expression'
  17. included includeProject
  18. optional 'com.fasterxml.jackson.core:jackson-databind'
  19. optional 'javax.annotation:jsr250-api'
  20. optional 'net.sf.ehcache:ehcache'
  21. optional 'org.aspectj:aspectjrt'
  22. optional 'org.springframework:spring-jdbc'
  23. optional 'org.springframework:spring-tx'
  24. testCompile powerMockDependencies
  25. testCompile 'commons-collections:commons-collections'
  26. testCompile 'org.skyscreamer:jsonassert'
  27. testCompile 'org.slf4j:jcl-over-slf4j'
  28. testCompile 'org.springframework:spring-test'
  29. testRuntime 'org.hsqldb:hsqldb'
  30. }
  31. classes.doLast {
  32. copy {
  33. from includeProject.sourceSets.main.output
  34. into sourceSets.main.output.classesDir
  35. }
  36. }
  37. tasks.sourcesJar.from {includeProject.sourceSets.main.java}
  38. configure(project.tasks.withType(Test)) {
  39. systemProperties['springSecurityVersion'] = version
  40. systemProperties['springVersion'] = project.dependencyManagement.managedVersions['org.springframework:spring-core']
  41. }
  42. task testJar(type: Jar) {
  43. classifier = 'tests'
  44. from sourceSets.test.output
  45. }
  46. artifacts {
  47. tests testJar
  48. }
  49. uploadPublished {
  50. // maven deployer configuration
  51. }
  52. install {
  53. configuration = configurations.published
  54. }