spring-security-config.gradle 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
  2. apply plugin: 'io.spring.convention.spring-module'
  3. apply plugin: 'trang'
  4. apply plugin: 'kotlin'
  5. repositories {
  6. maven { url "https://build.shibboleth.net/nexus/content/repositories/releases/" }
  7. }
  8. dependencies {
  9. management platform(project(":spring-security-dependencies"))
  10. // NB: Don't add other compile time dependencies to the config module as this breaks tooling
  11. api project(':spring-security-core')
  12. api 'org.springframework:spring-aop'
  13. api 'org.springframework:spring-beans'
  14. api 'org.springframework:spring-context'
  15. api 'org.springframework:spring-core'
  16. optional project(':spring-security-ldap')
  17. optional project(':spring-security-messaging')
  18. optional project(':spring-security-saml2-service-provider')
  19. optional project(':spring-security-oauth2-client')
  20. optional project(':spring-security-oauth2-jose')
  21. optional project(':spring-security-oauth2-resource-server')
  22. optional project(':spring-security-openid')
  23. optional project(':spring-security-rsocket')
  24. optional project(':spring-security-web')
  25. optional 'io.projectreactor:reactor-core'
  26. optional 'org.aspectj:aspectjweaver'
  27. optional 'org.springframework:spring-jdbc'
  28. optional 'org.springframework:spring-messaging'
  29. optional 'org.springframework:spring-tx'
  30. optional 'org.springframework:spring-webmvc'
  31. optional'org.springframework:spring-web'
  32. optional'org.springframework:spring-webflux'
  33. optional'org.springframework:spring-websocket'
  34. optional 'org.jetbrains.kotlin:kotlin-reflect'
  35. optional 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
  36. provided 'javax.servlet:javax.servlet-api'
  37. testImplementation project(':spring-security-aspects')
  38. testImplementation project(':spring-security-cas')
  39. testImplementation project(':spring-security-test')
  40. testImplementation project(path : ':spring-security-core', configuration : 'tests')
  41. testImplementation project(path : ':spring-security-ldap', configuration : 'tests')
  42. testImplementation project(path : ':spring-security-oauth2-client', configuration : 'tests')
  43. testImplementation project(path : ':spring-security-oauth2-resource-server', configuration : 'tests')
  44. testImplementation project(path : ':spring-security-saml2-service-provider', configuration : 'tests')
  45. testImplementation project(path : ':spring-security-web', configuration : 'tests')
  46. testImplementation apachedsDependencies
  47. testImplementation powerMock2Dependencies
  48. testImplementation 'com.squareup.okhttp3:mockwebserver'
  49. testImplementation 'ch.qos.logback:logback-classic'
  50. testImplementation 'io.projectreactor.netty:reactor-netty'
  51. testImplementation 'io.rsocket:rsocket-transport-netty'
  52. testImplementation 'javax.annotation:jsr250-api:1.0'
  53. testImplementation 'javax.xml.bind:jaxb-api'
  54. testImplementation 'ldapsdk:ldapsdk:4.1'
  55. testImplementation('net.sourceforge.htmlunit:htmlunit') {
  56. exclude group: 'commons-logging', module: 'commons-logging'
  57. }
  58. testImplementation 'org.eclipse.persistence:javax.persistence'
  59. testImplementation 'org.hibernate:hibernate-entitymanager'
  60. testImplementation 'org.hsqldb:hsqldb'
  61. testImplementation ('org.openid4java:openid4java-nodeps') {
  62. exclude group: 'com.google.code.guice', module: 'guice'
  63. }
  64. testImplementation('org.seleniumhq.selenium:htmlunit-driver') {
  65. exclude group: 'commons-logging', module: 'commons-logging'
  66. }
  67. testImplementation('org.seleniumhq.selenium:selenium-java') {
  68. exclude group: 'commons-logging', module: 'commons-logging'
  69. exclude group: 'io.netty', module: 'netty'
  70. }
  71. testImplementation 'org.slf4j:jcl-over-slf4j'
  72. testImplementation 'org.springframework.ldap:spring-ldap-core'
  73. testImplementation 'org.springframework:spring-expression'
  74. testImplementation 'org.springframework:spring-jdbc'
  75. testImplementation 'org.springframework:spring-orm'
  76. testImplementation 'org.springframework:spring-tx'
  77. testImplementation ('org.springframework.data:spring-data-jpa') {
  78. exclude group: 'org.aspectj', module: 'aspectjrt'
  79. }
  80. testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core'
  81. testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-reactor'
  82. testImplementation 'io.mockk:mockk'
  83. testRuntimeOnly 'org.hsqldb:hsqldb'
  84. }
  85. rncToXsd {
  86. rncDir = file('src/main/resources/org/springframework/security/config/')
  87. xsdDir = rncDir
  88. xslFile = new File(rncDir, 'spring-security.xsl')
  89. }
  90. tasks.withType(KotlinCompile).configureEach {
  91. kotlinOptions {
  92. apiVersion = "1.4"
  93. freeCompilerArgs = ["-Xjsr305=strict", "-Xsuppress-version-warnings"]
  94. jvmTarget = "1.8"
  95. languageVersion = "1.4"
  96. }
  97. }
  98. build.dependsOn rncToXsd