settings.gradle 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. def String[] modules = [
  2. 'core',
  3. 'data',
  4. 'remoting',
  5. 'web',
  6. 'ldap',
  7. 'acl',
  8. 'config',
  9. 'cas',
  10. 'openid',
  11. 'taglibs',
  12. 'aspects',
  13. 'crypto',
  14. 'messaging',
  15. 'test'
  16. ]
  17. def String[] samples = [
  18. 'tutorial-xml',
  19. 'contacts-xml',
  20. 'chat-jc',
  21. 'openid-xml',
  22. 'aspectj-xml',
  23. 'aspectj-jc',
  24. 'data-jc',
  25. 'gae-xml',
  26. 'dms-xml',
  27. 'preauth-xml',
  28. 'cas/server',
  29. 'cas/sample-xml',
  30. 'ldap-xml',
  31. 'jaas-xml',
  32. 'servletapi-xml',
  33. 'concurrency-jc',
  34. 'form-jc',
  35. 'helloworld-jc',
  36. 'helloworld-xml',
  37. 'hellomvc-jc',
  38. 'hellojs-jc',
  39. 'insecure',
  40. 'insecuremvc',
  41. 'inmemory-jc',
  42. 'jdbc-jc',
  43. 'ldap-jc',
  44. 'messages-jc',
  45. 'openid-jc',
  46. 'preauth-jc',
  47. 'rememberme-jc',
  48. 'x509-jc'
  49. ]
  50. def String[] itest = [
  51. 'web',
  52. 'context'
  53. ]
  54. include modules
  55. modules.each {name ->
  56. def p = findProject(":${name}")
  57. p.name = "spring-security-${name}"
  58. p.buildFileName = "${name}.gradle"
  59. }
  60. include samples
  61. samples.each {name ->
  62. def p = findProject(":${name}")
  63. def fullName = name.replaceAll('/','')
  64. p.name = "spring-security-samples-${fullName}"
  65. p.projectDir = new File(settingsDir, "samples/${name}");
  66. if(!p.buildFile.exists()) {
  67. def buildFile = fullName.replaceFirst("-xml","")
  68. p.buildFileName = "${buildFile}.gradle"
  69. }
  70. }
  71. include itest
  72. itest.each { name ->
  73. def p = findProject(":${name}")
  74. p.name = "itest-${name}"
  75. p.buildFileName = "itest-${name}.gradle"
  76. p.projectDir = new File(settingsDir, "itest/${name}");
  77. }
  78. include 'docs', 'docs:manual', 'docs:guides'
  79. def docs = findProject(':docs')
  80. docs.buildFileName = 'docs.gradle'
  81. rootProject.name = 'spring-security'
  82. rootProject.children.each {project ->
  83. //assert project.projectDir.isDirectory()
  84. //assert project.buildFile.isFile()
  85. }
  86. include 'bom'
  87. findProject(':bom').name = 'spring-security-bom'