build.gradle 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. plugins {
  2. alias(libs.plugins.org.springframework.boot)
  3. alias(libs.plugins.io.spring.dependency.management)
  4. id "nebula.integtest" version "8.2.0"
  5. id 'java'
  6. }
  7. repositories {
  8. mavenCentral()
  9. maven { url "https://repo.spring.io/milestone" }
  10. maven { url "https://repo.spring.io/snapshot" }
  11. maven { url "https://build.shibboleth.net/nexus/content/repositories/releases/" }
  12. }
  13. sourceSets.main.java.srcDirs += "$projectDir/../identity-provider/src/main/java"
  14. sourceSets.main.resources.srcDirs += "$projectDir/../identity-provider/src/main/resources"
  15. if (plugins.hasPlugin("io.spring.javaformat")) {
  16. tasks.formatMain {
  17. dependsOn(":servlet:spring-boot:java:saml2:identity-provider:formatMain")
  18. }
  19. }
  20. dependencies {
  21. constraints {
  22. implementation "org.opensaml:opensaml-saml-api:5.1.3"
  23. implementation "org.opensaml:opensaml-saml-impl:5.1.3"
  24. }
  25. implementation 'org.springframework.boot:spring-boot-starter-security'
  26. implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
  27. implementation 'org.springframework.boot:spring-boot-starter-web'
  28. implementation 'org.springframework.security:spring-security-saml2-service-provider'
  29. implementation 'org.thymeleaf.extras:thymeleaf-extras-springsecurity6'
  30. testImplementation 'org.htmlunit:htmlunit'
  31. testImplementation 'org.springframework.boot:spring-boot-starter-test'
  32. testImplementation 'org.springframework.security:spring-security-test'
  33. runtimeOnly "org.springframework.boot:spring-boot-docker-compose"
  34. }
  35. tasks.withType(Test).configureEach {
  36. useJUnitPlatform()
  37. }