build.gradle 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. 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:5.3.11")
  36. implementation platform("org.springframework.security:spring-security-bom:5.6.0-SNAPSHOT")
  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 "javax.servlet.jsp.jstl:javax.servlet.jsp.jstl-api:1.2.2"
  43. implementation "org.apache.taglibs:taglibs-standard-jstlel:1.2.5"
  44. implementation "org.thymeleaf:thymeleaf-spring5:3.0.11.RELEASE"
  45. implementation "org.thymeleaf.extras:thymeleaf-extras-springsecurity5:3.0.4.RELEASE"
  46. providedCompile "javax.servlet:javax.servlet-api:4.0.1"
  47. providedCompile "javax.servlet.jsp:javax.servlet.jsp-api:2.3.3"
  48. testImplementation "org.assertj:assertj-core:3.18.0"
  49. testImplementation "org.springframework:spring-test"
  50. testImplementation "org.springframework.security:spring-security-test"
  51. testImplementation("org.junit.jupiter:junit-jupiter-api")
  52. testImplementation "org.seleniumhq.selenium:htmlunit-driver:2.44.0"
  53. testImplementation 'org.hamcrest:hamcrest:2.2'
  54. testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
  55. }
  56. tasks.withType(Test).configureEach {
  57. useJUnitPlatform()
  58. outputs.upToDateWhen { false }
  59. }