spring-security-config.gradle 3.7 KB

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