spring-security-config.gradle 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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. optional 'javax.annotation:jsr250-api'
  37. provided 'javax.servlet:javax.servlet-api'
  38. testImplementation project(':spring-security-aspects')
  39. testImplementation project(':spring-security-cas')
  40. testImplementation project(':spring-security-test')
  41. testImplementation project(path : ':spring-security-core', configuration : 'tests')
  42. testImplementation project(path : ':spring-security-ldap', configuration : 'tests')
  43. testImplementation project(path : ':spring-security-oauth2-client', configuration : 'tests')
  44. testImplementation project(path : ':spring-security-oauth2-resource-server', configuration : 'tests')
  45. testImplementation project(path : ':spring-security-saml2-service-provider', configuration : 'tests')
  46. testImplementation project(path : ':spring-security-saml2-service-provider', configuration : 'opensaml4MainImplementation')
  47. testImplementation project(path : ':spring-security-web', configuration : 'tests')
  48. testImplementation "org.assertj:assertj-core"
  49. testImplementation "org.junit.jupiter:junit-jupiter-api"
  50. testImplementation "org.junit.jupiter:junit-jupiter-params"
  51. testImplementation "org.junit.jupiter:junit-jupiter-engine"
  52. testImplementation "org.mockito:mockito-core"
  53. testImplementation "org.mockito:mockito-junit-jupiter"
  54. testImplementation "org.springframework:spring-test"
  55. testImplementation 'com.squareup.okhttp3:mockwebserver'
  56. testImplementation 'ch.qos.logback:logback-classic'
  57. testImplementation 'io.projectreactor.netty:reactor-netty'
  58. testImplementation 'io.rsocket:rsocket-transport-netty'
  59. testImplementation 'javax.annotation:jsr250-api:1.0'
  60. testImplementation 'javax.xml.bind:jaxb-api'
  61. testImplementation 'ldapsdk:ldapsdk:4.1'
  62. testImplementation('net.sourceforge.htmlunit:htmlunit') {
  63. exclude group: 'commons-logging', module: 'commons-logging'
  64. }
  65. testImplementation "org.apache.directory.server:apacheds-core"
  66. testImplementation "org.apache.directory.server:apacheds-core-entry"
  67. testImplementation "org.apache.directory.server:apacheds-protocol-shared"
  68. testImplementation "org.apache.directory.server:apacheds-protocol-ldap"
  69. testImplementation "org.apache.directory.server:apacheds-server-jndi"
  70. testImplementation 'org.apache.directory.shared:shared-ldap'
  71. testImplementation 'org.eclipse.persistence:javax.persistence'
  72. testImplementation 'org.hibernate:hibernate-entitymanager'
  73. testImplementation 'org.hsqldb:hsqldb'
  74. testImplementation 'org.mockito:mockito-core'
  75. testImplementation "org.mockito:mockito-inline"
  76. testImplementation ('org.openid4java:openid4java-nodeps') {
  77. exclude group: 'com.google.code.guice', module: 'guice'
  78. }
  79. testImplementation('org.seleniumhq.selenium:htmlunit-driver') {
  80. exclude group: 'commons-logging', module: 'commons-logging'
  81. }
  82. testImplementation('org.seleniumhq.selenium:selenium-java') {
  83. exclude group: 'commons-logging', module: 'commons-logging'
  84. exclude group: 'io.netty', module: 'netty'
  85. }
  86. testImplementation 'org.slf4j:jcl-over-slf4j'
  87. testImplementation 'org.springframework.ldap:spring-ldap-core'
  88. testImplementation 'org.springframework:spring-expression'
  89. testImplementation 'org.springframework:spring-jdbc'
  90. testImplementation 'org.springframework:spring-orm'
  91. testImplementation 'org.springframework:spring-tx'
  92. testImplementation ('org.springframework.data:spring-data-jpa') {
  93. exclude group: 'org.aspectj', module: 'aspectjrt'
  94. }
  95. testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core'
  96. testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-reactor'
  97. testImplementation 'io.mockk:mockk'
  98. testRuntimeOnly 'org.hsqldb:hsqldb'
  99. }
  100. rncToXsd {
  101. rncDir = file('src/main/resources/org/springframework/security/config/')
  102. xsdDir = rncDir
  103. xslFile = new File(rncDir, 'spring-security.xsl')
  104. }
  105. tasks.withType(KotlinCompile).configureEach {
  106. kotlinOptions {
  107. languageVersion = "1.3"
  108. apiVersion = "1.3"
  109. freeCompilerArgs = ["-Xjsr305=strict", "-Xsuppress-version-warnings"]
  110. jvmTarget = "11"
  111. }
  112. }
  113. build.dependsOn rncToXsd