config.gradle 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. // Config Module build file
  2. apply plugin: 'groovy'
  3. compileTestJava.dependsOn(':spring-security-core:compileTestJava')
  4. configurations {
  5. // GRADLE-1124
  6. compile.extendsFrom = []
  7. testCompile.extendsFrom groovy
  8. }
  9. dependencies {
  10. compile project(':spring-security-core'),
  11. project(':spring-security-web'),
  12. "org.aspectj:aspectjweaver:$aspectjVersion",
  13. 'aopalliance:aopalliance:1.0',
  14. "org.springframework:spring-aop:$springVersion",
  15. "org.springframework:spring-context:$springVersion",
  16. "org.springframework:spring-web:$springVersion",
  17. "org.springframework:spring-beans:$springVersion"
  18. provided "javax.servlet:servlet-api:2.5"
  19. groovy group: 'org.codehaus.groovy', name: 'groovy', version: '1.7.4'
  20. testCompile project(':spring-security-ldap'),
  21. project(':spring-security-openid'),
  22. 'org.openid4java:openid4java-nodeps:0.9.5',
  23. project(':spring-security-core').sourceSets.test.classes,
  24. 'javax.annotation:jsr250-api:1.0',
  25. "org.springframework.ldap:spring-ldap-core:$springLdapVersion",
  26. "org.springframework:spring-jdbc:$springVersion",
  27. "org.springframework:spring-tx:$springVersion",
  28. 'org.spockframework:spock-core:0.4-groovy-1.7',
  29. "org.slf4j:jcl-over-slf4j:$slf4jVersion"
  30. testRuntime "hsqldb:hsqldb:$hsqlVersion",
  31. "cglib:cglib-nodep:2.2"
  32. }
  33. task ldapTests(type: Test) {
  34. jvmArgs = ['-ea', '-Xmx500m', "-DapacheDSWorkDir=${buildDir}/apacheDSWork"]
  35. include ("**/ldap/**")
  36. maxParallelForks = 1
  37. // GRADLE-1090
  38. testClassesDir = sourceSets.test.classesDir
  39. classpath = sourceSets.test.runtimeClasspath
  40. testReport = false
  41. }
  42. test {
  43. dependsOn ldapTests
  44. exclude ("**/ldap/**")
  45. }