build.gradle 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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-core:4.1.1"
  32. implementation "org.opensaml:opensaml-saml-api:4.1.1"
  33. implementation "org.opensaml:opensaml-saml-impl:4.1.1"
  34. }
  35. implementation platform("org.springframework:spring-framework-bom:6.0.7")
  36. implementation platform("org.springframework.security:spring-security-bom:6.0.4")
  37. implementation platform("org.junit:junit-bom:5.7.0")
  38. implementation "org.springframework.security:spring-security-config"
  39. implementation "org.springframework.security:spring-security-web"
  40. implementation "org.springframework:spring-webmvc"
  41. implementation "org.springframework.security:spring-security-saml2-service-provider"
  42. implementation "org.thymeleaf:thymeleaf-spring6:3.1.0.RELEASE"
  43. implementation "org.thymeleaf.extras:thymeleaf-extras-springsecurity6:3.1.0.M1"
  44. providedCompile "jakarta.servlet:jakarta.servlet-api:6.0.0"
  45. providedCompile "org.glassfish.web:jakarta.servlet.jsp.jstl:2.0.0"
  46. testImplementation "org.assertj:assertj-core:3.18.0"
  47. testImplementation "org.springframework:spring-test"
  48. testImplementation "org.springframework.security:spring-security-test"
  49. testImplementation("org.junit.jupiter:junit-jupiter-api")
  50. testImplementation "org.seleniumhq.selenium:htmlunit-driver:3.64.0"
  51. testImplementation 'org.hamcrest:hamcrest:2.2'
  52. testImplementation 'org.awaitility:awaitility:4.2.0'
  53. testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
  54. }
  55. tasks.withType(Test).configureEach {
  56. useJUnitPlatform()
  57. outputs.upToDateWhen { false }
  58. }