2
0

spring-security-core.gradle 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. apply plugin: 'io.spring.convention.spring-module'
  2. def includeProject = project(':spring-security-crypto')
  3. configurations {
  4. included
  5. compile.extendsFrom included
  6. }
  7. dependencies {
  8. compile 'org.springframework:spring-aop'
  9. compile 'org.springframework:spring-beans'
  10. compile 'org.springframework:spring-context'
  11. compile 'org.springframework:spring-core'
  12. compile 'org.springframework:spring-expression'
  13. included includeProject
  14. optional 'com.fasterxml.jackson.core:jackson-databind'
  15. optional 'io.projectreactor:reactor-core'
  16. optional 'javax.annotation:jsr250-api'
  17. optional 'net.sf.ehcache:ehcache'
  18. optional 'org.aspectj:aspectjrt'
  19. optional 'org.springframework:spring-jdbc'
  20. optional 'org.springframework:spring-tx'
  21. testCompile powerMock2Dependencies
  22. testCompile 'commons-collections:commons-collections'
  23. testCompile 'io.projectreactor:reactor-test'
  24. testCompile 'org.skyscreamer:jsonassert'
  25. testCompile 'org.slf4j:jcl-over-slf4j'
  26. testCompile 'org.springframework:spring-test'
  27. testRuntime 'org.hsqldb:hsqldb'
  28. }
  29. task springVersion(type: versions.VersionsResourceTasks) {
  30. versionsFile = file("${buildDir}/versions/spring-security.versions")
  31. versions = { project.dependencyManagement.managedVersions }
  32. }
  33. tasks.processResources {
  34. into('META-INF') {
  35. from project.tasks.springVersion.outputs
  36. }
  37. }
  38. tasks.jar.from { includeProject.sourceSets.main.output }
  39. tasks.sourcesJar.from {includeProject.sourceSets.main.java}
  40. configure(project.tasks.withType(Test)) {
  41. doFirst {
  42. systemProperties['springSecurityVersion'] = version
  43. systemProperties['springVersion'] = project.dependencyManagement.managedVersions['org.springframework:spring-core']
  44. }
  45. }