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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. apply plugin: 'io.spring.convention.spring-module'
  2. apply plugin: 'nebula.facet'
  3. facets {
  4. opensaml3Main {
  5. parentSourceSet = 'main'
  6. }
  7. opensaml4Main {
  8. parentSourceSet = 'main'
  9. }
  10. opensaml3Test {
  11. parentSourceSet = 'opensaml3Main'
  12. }
  13. opensaml4Test {
  14. parentSourceSet = 'opensaml4Main'
  15. }
  16. }
  17. sourceSets {
  18. opensaml3Test {
  19. compileClasspath += sourceSets.test.output
  20. runtimeClasspath += sourceSets.test.output
  21. }
  22. opensaml4Test {
  23. compileClasspath += sourceSets.test.output
  24. runtimeClasspath += sourceSets.test.output
  25. }
  26. }
  27. configurations {
  28. opensaml3TestImplementation.extendsFrom testImplementation
  29. opensaml4TestImplementation.extendsFrom testImplementation
  30. }
  31. compileOpensaml4MainJava {
  32. sourceCompatibility = '11'
  33. targetCompatibility = '11'
  34. }
  35. dependencies {
  36. management platform(project(":spring-security-dependencies"))
  37. api project(':spring-security-web')
  38. api "org.opensaml:opensaml-core"
  39. api "org.opensaml:opensaml-saml-api"
  40. api "org.opensaml:opensaml-saml-impl"
  41. opensaml4MainCompile "org.opensaml:opensaml-core:4.1.0"
  42. opensaml4MainCompile "org.opensaml:opensaml-saml-api:4.1.0"
  43. opensaml4MainCompile "org.opensaml:opensaml-saml-impl:4.1.0"
  44. provided 'javax.servlet:javax.servlet-api'
  45. testImplementation 'com.squareup.okhttp3:mockwebserver'
  46. }
  47. project.tasks.matching { t -> t.name == "jar"}.configureEach {
  48. from {
  49. compileOpensaml3MainJava
  50. }
  51. from {
  52. compileOpensaml4MainJava
  53. }
  54. }
  55. project.tasks.matching { t -> t.name == "sourcesJar"}.configureEach {
  56. from {
  57. sourceSets.opensaml3Main.allSource
  58. }
  59. from {
  60. sourceSets.opensaml4Main.allSource
  61. }
  62. }
  63. javadoc {
  64. source += sourceSets.opensaml3Main.allJava + sourceSets.opensaml4Main.allJava
  65. }