spring-security-saml2-service-provider.gradle 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. apply plugin: 'io.spring.convention.spring-module'
  2. sourceSets.configureEach { set ->
  3. if (!set.name.containsIgnoreCase("main")) {
  4. return
  5. }
  6. def from = copySpec {
  7. from("$projectDir/src/$set.name/java/org/springframework/security/saml2/internal")
  8. }
  9. copy {
  10. into "$projectDir/src/$set.name/java/org/springframework/security/saml2/provider/service/authentication/logout"
  11. filter { line -> line.replaceAll(".saml2.internal", ".saml2.provider.service.authentication.logout") }
  12. with from
  13. }
  14. copy {
  15. into "$projectDir/src/$set.name/java/org/springframework/security/saml2/provider/service/authentication"
  16. filter { line -> line.replaceAll(".saml2.internal", ".saml2.provider.service.authentication") }
  17. with from
  18. }
  19. copy {
  20. into "$projectDir/src/$set.name/java/org/springframework/security/saml2/provider/service/metadata"
  21. filter { line -> line.replaceAll(".saml2.internal", ".saml2.provider.service.metadata") }
  22. with from
  23. }
  24. copy {
  25. into "$projectDir/src/$set.name/java/org/springframework/security/saml2/provider/service/web/authentication/logout"
  26. filter { line -> line.replaceAll(".saml2.internal", ".saml2.provider.service.web.authentication.logout") }
  27. with from
  28. }
  29. copy {
  30. into "$projectDir/src/$set.name/java/org/springframework/security/saml2/provider/service/web/authentication"
  31. filter { line -> line.replaceAll(".saml2.internal", ".saml2.provider.service.web.authentication") }
  32. with from
  33. }
  34. copy {
  35. into "$projectDir/src/$set.name/java/org/springframework/security/saml2/provider/service/web"
  36. filter { line -> line.replaceAll(".saml2.internal", ".saml2.provider.service.web") }
  37. with from
  38. }
  39. copy {
  40. into "$projectDir/src/$set.name/java/org/springframework/security/saml2/provider/service/registration"
  41. filter { line -> line.replaceAll(".saml2.internal", ".saml2.provider.service.registration") }
  42. with from
  43. }
  44. }
  45. dependencies {
  46. management platform(project(":spring-security-dependencies"))
  47. api project(':spring-security-web')
  48. api "org.opensaml:opensaml-core"
  49. api ("org.opensaml:opensaml-saml-api") {
  50. exclude group: 'commons-logging', module: 'commons-logging'
  51. }
  52. api ("org.opensaml:opensaml-saml-impl") {
  53. exclude group: 'commons-logging', module: 'commons-logging'
  54. }
  55. provided 'jakarta.servlet:jakarta.servlet-api'
  56. optional 'com.fasterxml.jackson.core:jackson-databind'
  57. testImplementation 'com.squareup.okhttp3:mockwebserver'
  58. testImplementation "org.assertj:assertj-core"
  59. testImplementation "org.skyscreamer:jsonassert"
  60. testImplementation "org.junit.jupiter:junit-jupiter-api"
  61. testImplementation "org.junit.jupiter:junit-jupiter-params"
  62. testImplementation "org.junit.jupiter:junit-jupiter-engine"
  63. testImplementation "org.mockito:mockito-core"
  64. testImplementation "org.mockito:mockito-junit-jupiter"
  65. testImplementation "org.springframework:spring-test"
  66. }