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

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