2
0

spring-security-core.gradle 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. import java.util.concurrent.Callable
  2. apply plugin: 'io.spring.convention.spring-module'
  3. dependencies {
  4. management platform(project(":spring-security-dependencies"))
  5. api project(':spring-security-crypto')
  6. api 'org.springframework:spring-aop'
  7. api 'org.springframework:spring-beans'
  8. api 'org.springframework:spring-context'
  9. api 'org.springframework:spring-core'
  10. api 'org.springframework:spring-expression'
  11. optional 'com.fasterxml.jackson.core:jackson-databind'
  12. optional 'io.projectreactor:reactor-core'
  13. optional 'javax.annotation:jsr250-api'
  14. optional 'net.sf.ehcache:ehcache'
  15. optional 'org.aspectj:aspectjrt'
  16. optional 'org.springframework:spring-jdbc'
  17. optional 'org.springframework:spring-tx'
  18. optional 'org.jetbrains.kotlinx:kotlinx-coroutines-reactor'
  19. testImplementation 'commons-collections:commons-collections'
  20. testImplementation 'io.projectreactor:reactor-test'
  21. testImplementation "org.assertj:assertj-core"
  22. testImplementation "org.junit.jupiter:junit-jupiter-api"
  23. testImplementation "org.junit.jupiter:junit-jupiter-params"
  24. testImplementation "org.junit.jupiter:junit-jupiter-engine"
  25. testImplementation "org.mockito:mockito-core"
  26. testImplementation 'org.mockito:mockito-inline'
  27. testImplementation "org.mockito:mockito-junit-jupiter"
  28. testImplementation "org.springframework:spring-test"
  29. testImplementation 'org.skyscreamer:jsonassert'
  30. testImplementation 'org.slf4j:jcl-over-slf4j'
  31. testImplementation 'org.springframework:spring-test'
  32. testRuntimeOnly 'org.hsqldb:hsqldb'
  33. }
  34. task springVersion(type: org.gradle.api.tasks.WriteProperties) {
  35. outputFile = file("${buildDir}/versions/spring-security.versions")
  36. property("org.springframework:spring-core", springVersion())
  37. }
  38. tasks.processResources {
  39. into('META-INF') {
  40. from project.tasks.springVersion.outputs
  41. }
  42. }
  43. configure(project.tasks.withType(Test)) {
  44. doFirst {
  45. systemProperties['springSecurityVersion'] = version
  46. systemProperties['springVersion'] = springVersion().call()
  47. }
  48. }
  49. Callable<String> springVersion() {
  50. return (Callable<String>) { project.configurations.compileClasspath.resolvedConfiguration.resolvedArtifacts
  51. .find { it.name == 'spring-core' }.moduleVersion.id.version }
  52. }