build.gradle 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /*
  2. * Copyright 2021 the original author or authors.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * https://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. plugins {
  17. id "java"
  18. id "nebula.integtest" version "8.2.0"
  19. id "org.gretty" version "4.0.3"
  20. id "war"
  21. }
  22. apply from: "gradle/gretty.gradle"
  23. repositories {
  24. mavenCentral()
  25. maven { url "https://repo.spring.io/milestone" }
  26. maven { url "https://repo.spring.io/snapshot" }
  27. maven { url "https://build.shibboleth.net/nexus/content/repositories/releases/" }
  28. }
  29. dependencies {
  30. constraints {
  31. implementation "org.opensaml:opensaml-saml-api:5.1.3"
  32. implementation "org.opensaml:opensaml-saml-impl:5.1.3"
  33. }
  34. implementation platform(libs.org.springframework.spring.framework.bom)
  35. implementation platform(libs.org.springframework.security.spring.security.bom)
  36. implementation platform("org.junit:junit-bom:5.10.3")
  37. implementation "org.springframework.security:spring-security-config"
  38. implementation "org.springframework.security:spring-security-web"
  39. implementation "org.springframework:spring-webmvc"
  40. implementation "org.springframework.security:spring-security-saml2-service-provider"
  41. implementation "org.thymeleaf:thymeleaf-spring6:3.1.2.RELEASE"
  42. implementation "org.thymeleaf.extras:thymeleaf-extras-springsecurity6:3.1.2.RELEASE"
  43. providedCompile "jakarta.servlet:jakarta.servlet-api:6.1.0"
  44. providedCompile "org.glassfish.web:jakarta.servlet.jsp.jstl:2.0.0"
  45. testImplementation "org.assertj:assertj-core:3.26.3"
  46. testImplementation "org.springframework:spring-test"
  47. testImplementation "org.springframework.security:spring-security-test"
  48. testImplementation("org.junit.jupiter:junit-jupiter-api")
  49. testImplementation 'org.htmlunit:htmlunit:4.3.0'
  50. testImplementation 'org.hamcrest:hamcrest:2.2'
  51. testImplementation 'org.awaitility:awaitility:4.2.1'
  52. testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
  53. }
  54. tasks.withType(Test).configureEach {
  55. useJUnitPlatform()
  56. }