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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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. testImplementation "org.assertj:assertj-core"
  47. testImplementation "org.junit.jupiter:junit-jupiter-api"
  48. testImplementation "org.junit.jupiter:junit-jupiter-params"
  49. testImplementation "org.junit.jupiter:junit-jupiter-engine"
  50. testImplementation "org.mockito:mockito-core"
  51. testImplementation "org.mockito:mockito-inline"
  52. testImplementation "org.mockito:mockito-junit-jupiter"
  53. testImplementation "org.springframework:spring-test"
  54. }
  55. project.tasks.matching { t -> t.name == "jar"}.configureEach {
  56. from {
  57. compileOpensaml3MainJava
  58. }
  59. from {
  60. compileOpensaml4MainJava
  61. }
  62. }
  63. project.tasks.matching { t -> t.name == "sourcesJar"}.configureEach {
  64. from {
  65. sourceSets.opensaml3Main.allSource
  66. }
  67. from {
  68. sourceSets.opensaml4Main.allSource
  69. }
  70. }
  71. javadoc {
  72. source += sourceSets.opensaml3Main.allJava + sourceSets.opensaml4Main.allJava
  73. }