spring-security-core.gradle 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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 'org.springframework:spring-aop'
  12. compile 'org.springframework:spring-beans'
  13. compile 'org.springframework:spring-context'
  14. compile 'org.springframework:spring-core'
  15. compile 'org.springframework:spring-expression'
  16. included includeProject
  17. optional 'com.fasterxml.jackson.core:jackson-databind'
  18. optional 'javax.annotation:jsr250-api'
  19. optional 'net.sf.ehcache:ehcache'
  20. optional 'org.aspectj:aspectjrt'
  21. optional 'org.springframework:spring-jdbc'
  22. optional 'org.springframework:spring-tx'
  23. testCompile powerMockDependencies
  24. testCompile 'commons-collections:commons-collections'
  25. testCompile 'org.skyscreamer:jsonassert'
  26. testCompile 'org.slf4j:jcl-over-slf4j'
  27. testCompile 'org.springframework:spring-test'
  28. testRuntime 'org.hsqldb:hsqldb'
  29. }
  30. classes.doLast {
  31. copy {
  32. from includeProject.sourceSets.main.output
  33. into sourceSets.main.output.classesDir
  34. }
  35. }
  36. tasks.sourcesJar.from {includeProject.sourceSets.main.java}
  37. configure(project.tasks.withType(Test)) {
  38. systemProperties['springSecurityVersion'] = version
  39. systemProperties['springVersion'] = project.dependencyManagement.managedVersions['org.springframework:spring-core']
  40. }
  41. task testJar(type: Jar) {
  42. classifier = 'tests'
  43. from sourceSets.test.output
  44. }
  45. artifacts {
  46. tests testJar
  47. }
  48. uploadPublished {
  49. // maven deployer configuration
  50. }
  51. install {
  52. configuration = configurations.published
  53. }