saml2-service-provider-opensaml4.gradle 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. buildscript {
  2. repositories {
  3. maven { url 'https://repo.spring.io/plugins-release' }
  4. }
  5. dependencies {
  6. classpath 'io.spring.gradle:propdeps-plugin:0.0.10.RELEASE'
  7. }
  8. }
  9. plugins {
  10. id 'java'
  11. id 'java-library'
  12. id 'io.spring.convention.repository'
  13. id 'io.spring.convention.management-configuration'
  14. id 'io.spring.convention.dependency-set'
  15. id 'io.spring.convention.checkstyle'
  16. id 'io.spring.convention.tests-configuration'
  17. id 'io.spring.convention.integration-test'
  18. id 'propdeps'
  19. }
  20. configurations {
  21. classesOnlyElements {
  22. canBeConsumed = true
  23. canBeResolved = false
  24. attributes {
  25. attribute(TargetJvmVersion.TARGET_JVM_VERSION_ATTRIBUTE, 11)
  26. }
  27. }
  28. sourceElements {
  29. canBeConsumed = true
  30. canBeResolved = false
  31. }
  32. javadocElements {
  33. canBeConsumed = true
  34. canBeResolved = false
  35. }
  36. }
  37. artifacts {
  38. classesOnlyElements(compileJava.destinationDir)
  39. sourceSets.main.allSource.srcDirs.forEach({ dir ->
  40. sourceElements(dir)
  41. })
  42. javadocElements(javadoc.destinationDir)
  43. }
  44. sourceCompatibility = '11'
  45. repositories {
  46. maven { url "https://build.shibboleth.net/nexus/content/repositories/releases/" }
  47. }
  48. dependencies {
  49. management platform(project(":spring-security-dependencies"))
  50. constraints {
  51. management("org.opensaml:opensaml-core:4.1.0")
  52. management("org.opensaml:opensaml-saml-api:4.1.0")
  53. management("org.opensaml:opensaml-saml-impl:4.1.0")
  54. }
  55. api project(':saml2-service-provider-core')
  56. api("org.opensaml:opensaml-core")
  57. api("org.opensaml:opensaml-saml-api")
  58. api("org.opensaml:opensaml-saml-impl")
  59. provided 'javax.servlet:javax.servlet-api'
  60. testImplementation 'com.squareup.okhttp3:mockwebserver'
  61. testImplementation project(path : ':saml2-service-provider-core', configuration : 'tests')
  62. }