spring-security-config.gradle 3.8 KB

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