spring-security-config.gradle 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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-oauth2-client', configuration : 'tests')
  38. testCompile project(path : ':spring-security-oauth2-resource-server', configuration : 'tests')
  39. testCompile project(path : ':spring-security-web', configuration : 'tests')
  40. testCompile apachedsDependencies
  41. testCompile powerMock2Dependencies
  42. testCompile 'com.squareup.okhttp3:mockwebserver'
  43. testCompile 'ch.qos.logback:logback-classic'
  44. testCompile 'io.projectreactor.netty:reactor-netty'
  45. testCompile 'io.rsocket:rsocket-transport-netty'
  46. testCompile 'javax.annotation:jsr250-api:1.0'
  47. testCompile 'javax.xml.bind:jaxb-api'
  48. testCompile 'ldapsdk:ldapsdk:4.1'
  49. testCompile('net.sourceforge.htmlunit:htmlunit') {
  50. exclude group: 'commons-logging', module: 'commons-logging'
  51. }
  52. testCompile 'org.eclipse.persistence:javax.persistence'
  53. testCompile 'org.hibernate:hibernate-entitymanager'
  54. testCompile 'org.hsqldb:hsqldb'
  55. testCompile ('org.openid4java:openid4java-nodeps') {
  56. exclude group: 'com.google.code.guice', module: 'guice'
  57. }
  58. testCompile('org.seleniumhq.selenium:htmlunit-driver') {
  59. exclude group: 'commons-logging', module: 'commons-logging'
  60. }
  61. testCompile('org.seleniumhq.selenium:selenium-java') {
  62. exclude group: 'commons-logging', module: 'commons-logging'
  63. exclude group: 'io.netty', module: 'netty'
  64. }
  65. testCompile 'org.slf4j:jcl-over-slf4j'
  66. testCompile 'org.springframework.ldap:spring-ldap-core'
  67. testCompile 'org.springframework:spring-expression'
  68. testCompile 'org.springframework:spring-jdbc'
  69. testCompile 'org.springframework:spring-orm'
  70. testCompile 'org.springframework:spring-tx'
  71. testCompile ('org.springframework.data:spring-data-jpa') {
  72. exclude group: 'org.aspectj', module: 'aspectjrt'
  73. }
  74. testRuntime 'org.hsqldb:hsqldb'
  75. }
  76. rncToXsd {
  77. rncDir = file('src/main/resources/org/springframework/security/config/')
  78. xsdDir = rncDir
  79. xslFile = new File(rncDir, 'spring-security.xsl')
  80. }
  81. tasks.withType(KotlinCompile).configureEach {
  82. kotlinOptions {
  83. jvmTarget = "1.8"
  84. freeCompilerArgs = ["-Xjsr305=strict"]
  85. }
  86. }
  87. build.dependsOn rncToXsd