spring-security-config.gradle 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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-saml2-service-provider', configuration : 'tests')
  40. testCompile project(path : ':spring-security-web', configuration : 'tests')
  41. testCompile apachedsDependencies
  42. testCompile powerMock2Dependencies
  43. testCompile 'com.squareup.okhttp3:mockwebserver'
  44. testCompile 'ch.qos.logback:logback-classic'
  45. testCompile 'io.projectreactor.netty:reactor-netty'
  46. testCompile 'io.rsocket:rsocket-transport-netty'
  47. testCompile 'javax.annotation:jsr250-api:1.0'
  48. testCompile 'javax.xml.bind:jaxb-api'
  49. testCompile 'ldapsdk:ldapsdk:4.1'
  50. testCompile('net.sourceforge.htmlunit:htmlunit') {
  51. exclude group: 'commons-logging', module: 'commons-logging'
  52. }
  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. tasks.withType(KotlinCompile).configureEach {
  83. kotlinOptions {
  84. jvmTarget = "1.8"
  85. freeCompilerArgs = ["-Xjsr305=strict"]
  86. }
  87. }
  88. build.dependsOn rncToXsd