build.gradle 2.5 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 "3.0.6"
  20. id "war"
  21. }
  22. apply from: "gradle/gretty.gradle"
  23. repositories {
  24. jcenter()
  25. maven { url "https://repo.spring.io/snapshot" }
  26. maven { url "https://build.shibboleth.net/nexus/content/repositories/releases/" }
  27. }
  28. dependencies {
  29. constraints {
  30. implementation "org.opensaml:opensaml-core:4.1.1"
  31. implementation "org.opensaml:opensaml-saml-api:4.1.1"
  32. implementation "org.opensaml:opensaml-saml-impl:4.1.1"
  33. }
  34. implementation platform("org.springframework:spring-framework-bom:5.3.11")
  35. implementation platform("org.springframework.security:spring-security-bom:5.6.0-SNAPSHOT")
  36. implementation platform("org.junit:junit-bom:5.7.0")
  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 "javax.servlet.jsp.jstl:javax.servlet.jsp.jstl-api:1.2.2"
  42. implementation "org.apache.taglibs:taglibs-standard-jstlel:1.2.5"
  43. implementation "org.thymeleaf:thymeleaf-spring5:3.0.11.RELEASE"
  44. implementation "org.thymeleaf.extras:thymeleaf-extras-springsecurity5:3.0.4.RELEASE"
  45. providedCompile "javax.servlet:javax.servlet-api:4.0.1"
  46. providedCompile "javax.servlet.jsp:javax.servlet.jsp-api:2.3.3"
  47. testImplementation "org.assertj:assertj-core:3.18.0"
  48. testImplementation "org.springframework:spring-test"
  49. testImplementation "org.springframework.security:spring-security-test"
  50. testImplementation("org.junit.jupiter:junit-jupiter-api")
  51. testImplementation "org.seleniumhq.selenium:htmlunit-driver:2.44.0"
  52. testImplementation 'org.hamcrest:hamcrest:2.2'
  53. testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
  54. }
  55. tasks.withType(Test).configureEach {
  56. useJUnitPlatform()
  57. }