2010-01-19 23:14:48 -05:00
|
|
|
def String[] modules = [
|
2010-01-10 18:31:23 -05:00
|
|
|
'core',
|
2011-05-14 06:57:30 -04:00
|
|
|
'remoting',
|
2010-01-10 18:31:23 -05:00
|
|
|
'web',
|
|
|
|
'ldap',
|
|
|
|
'acl',
|
|
|
|
'config',
|
|
|
|
'cas',
|
|
|
|
'openid',
|
2010-03-09 14:22:50 -05:00
|
|
|
'taglibs',
|
2011-06-09 19:01:25 -04:00
|
|
|
'aspects',
|
|
|
|
'crypto'
|
2010-01-10 18:31:23 -05:00
|
|
|
]
|
|
|
|
|
2010-01-19 23:14:48 -05:00
|
|
|
def String[] samples = [
|
2013-08-01 15:14:18 -04:00
|
|
|
'tutorial-xml',
|
|
|
|
'contacts-xml',
|
|
|
|
'openid-xml',
|
|
|
|
'aspectj-xml',
|
|
|
|
'gae-xml',
|
|
|
|
'dms-xml',
|
|
|
|
'preauth-xml',
|
2011-05-15 22:21:45 -04:00
|
|
|
'cas/server',
|
2013-08-01 15:14:18 -04:00
|
|
|
'cas/sample-xml',
|
|
|
|
'ldap-xml',
|
|
|
|
'jaas-xml',
|
|
|
|
'servletapi-xml',
|
|
|
|
'concurrency-jc',
|
2013-08-19 15:57:23 -04:00
|
|
|
'form-jc',
|
2013-08-01 15:14:18 -04:00
|
|
|
'helloworld-jc',
|
2013-08-06 12:31:45 -04:00
|
|
|
'hellomvc-jc',
|
2013-10-11 12:16:51 -04:00
|
|
|
'hellojs-jc',
|
2013-08-06 12:31:45 -04:00
|
|
|
'insecure',
|
|
|
|
'insecuremvc',
|
2013-08-01 15:14:18 -04:00
|
|
|
'inmemory-jc',
|
|
|
|
'jdbc-jc',
|
|
|
|
'ldap-jc',
|
|
|
|
'messages-jc',
|
|
|
|
'openid-jc',
|
|
|
|
'preauth-jc',
|
|
|
|
'rememberme-jc',
|
|
|
|
'x509-jc'
|
2010-01-10 18:31:23 -05:00
|
|
|
]
|
|
|
|
|
2010-02-08 18:57:04 -05:00
|
|
|
def String[] itest = [
|
2010-03-11 20:40:27 -05:00
|
|
|
'web',
|
|
|
|
'context'
|
2010-02-08 18:57:04 -05:00
|
|
|
]
|
|
|
|
|
2010-01-10 18:31:23 -05:00
|
|
|
include modules
|
|
|
|
|
|
|
|
modules.each {name ->
|
2012-06-29 13:59:22 -04:00
|
|
|
def p = findProject(":${name}")
|
2010-01-10 18:31:23 -05:00
|
|
|
p.name = "spring-security-${name}"
|
|
|
|
p.buildFileName = "${name}.gradle"
|
|
|
|
}
|
|
|
|
|
|
|
|
include samples
|
|
|
|
|
|
|
|
samples.each {name ->
|
2012-06-29 13:59:22 -04:00
|
|
|
def p = findProject(":${name}")
|
2011-05-15 22:21:45 -04:00
|
|
|
def fullName = name.replaceAll('/','')
|
|
|
|
p.name = "spring-security-samples-${fullName}"
|
2013-08-06 12:31:45 -04:00
|
|
|
p.projectDir = new File(settingsDir, "samples/${name}");
|
|
|
|
if(!p.buildFile.exists()) {
|
2013-08-01 15:14:18 -04:00
|
|
|
def buildFile = fullName.replaceFirst("-xml","")
|
|
|
|
p.buildFileName = "${buildFile}.gradle"
|
|
|
|
}
|
2010-01-10 18:31:23 -05:00
|
|
|
}
|
|
|
|
|
2010-02-08 18:57:04 -05:00
|
|
|
include itest
|
|
|
|
|
|
|
|
itest.each { name ->
|
2012-06-29 13:59:22 -04:00
|
|
|
def p = findProject(":${name}")
|
2010-02-08 18:57:04 -05:00
|
|
|
p.name = "itest-${name}"
|
|
|
|
p.buildFileName = "itest-${name}.gradle"
|
|
|
|
p.projectDir = new File(settingsDir, "itest/${name}");
|
|
|
|
}
|
|
|
|
|
2013-10-03 22:28:55 -04:00
|
|
|
include 'docs', 'docs:manual', 'docs:guides'
|
2010-01-19 23:14:48 -05:00
|
|
|
|
2012-06-29 13:59:22 -04:00
|
|
|
def docs = findProject(':docs')
|
2010-08-03 21:04:40 -04:00
|
|
|
docs.buildFileName = 'docs.gradle'
|
2010-01-10 18:31:23 -05:00
|
|
|
|
2012-08-08 15:16:37 -04:00
|
|
|
rootProject.name = 'spring-security'
|
|
|
|
|
2010-01-10 18:31:23 -05:00
|
|
|
rootProject.children.each {project ->
|
2013-08-01 15:14:18 -04:00
|
|
|
//assert project.projectDir.isDirectory()
|
|
|
|
//assert project.buildFile.isFile()
|
2010-07-26 21:16:39 -04:00
|
|
|
}
|
2013-12-09 16:51:49 -05:00
|
|
|
|
|
|
|
include 'bom'
|
|
|
|
findProject(':bom').name = 'spring-security-bom'
|