2010-01-20 04:14:48 +00:00
|
|
|
def String[] modules = [
|
2010-01-10 23:31:23 +00:00
|
|
|
'core',
|
|
|
|
'web',
|
|
|
|
'ldap',
|
|
|
|
'acl',
|
|
|
|
'config',
|
|
|
|
'cas',
|
|
|
|
'openid',
|
2010-03-05 23:20:15 +00:00
|
|
|
'taglibs',
|
2012-10-01 14:46:37 -05:00
|
|
|
'aspects',
|
|
|
|
'parent'
|
2010-01-10 23:31:23 +00:00
|
|
|
]
|
|
|
|
|
2010-01-20 04:14:48 +00:00
|
|
|
def String[] samples = [
|
2010-01-10 23:31:23 +00:00
|
|
|
'tutorial',
|
|
|
|
'contacts',
|
2010-03-31 16:55:02 +01:00
|
|
|
'openid',
|
2012-10-01 14:46:37 -05:00
|
|
|
'aspectj',
|
|
|
|
'dms',
|
|
|
|
'preauth',
|
|
|
|
'cas/server',
|
|
|
|
'cas/sample',
|
|
|
|
'ldap'
|
2010-01-20 04:14:48 +00:00
|
|
|
]
|
|
|
|
|
2010-02-08 23:57:04 +00:00
|
|
|
def String[] itest = [
|
2012-10-01 14:46:37 -05:00
|
|
|
'web',
|
|
|
|
'context'
|
2010-02-08 23:57:04 +00:00
|
|
|
]
|
|
|
|
|
2010-01-10 23:31:23 +00:00
|
|
|
include modules
|
|
|
|
|
|
|
|
modules.each {name ->
|
2012-10-01 14:46:37 -05:00
|
|
|
def p = findProject(":${name}")
|
2010-01-10 23:31:23 +00:00
|
|
|
p.name = "spring-security-${name}"
|
|
|
|
p.buildFileName = "${name}.gradle"
|
|
|
|
}
|
|
|
|
|
2012-10-01 14:46:37 -05:00
|
|
|
def casClient = findProject(":spring-security-cas")
|
|
|
|
casClient.name = 'spring-security-cas-client'
|
|
|
|
|
2010-01-10 23:31:23 +00:00
|
|
|
include samples
|
|
|
|
|
|
|
|
samples.each {name ->
|
2012-10-01 14:46:37 -05:00
|
|
|
def p = findProject(":${name}")
|
|
|
|
def fullName = name.replaceAll('/','')
|
|
|
|
p.name = "spring-security-samples-${fullName}"
|
|
|
|
p.buildFileName = "${fullName}.gradle"
|
2010-01-10 23:31:23 +00:00
|
|
|
p.projectDir = new File(settingsDir, "samples/${name}");
|
|
|
|
}
|
|
|
|
|
2010-02-08 23:57:04 +00:00
|
|
|
include itest
|
|
|
|
|
|
|
|
itest.each { name ->
|
2012-10-01 14:46:37 -05:00
|
|
|
def p = findProject(":${name}")
|
2010-02-08 23:57:04 +00:00
|
|
|
p.name = "itest-${name}"
|
|
|
|
p.buildFileName = "itest-${name}.gradle"
|
|
|
|
p.projectDir = new File(settingsDir, "itest/${name}");
|
|
|
|
}
|
|
|
|
|
2012-10-01 14:46:37 -05:00
|
|
|
include 'docs', 'docs:faq', 'docs:manual'
|
2010-01-20 04:14:48 +00:00
|
|
|
|
2012-10-01 14:46:37 -05:00
|
|
|
def docs = findProject(':docs')
|
|
|
|
docs.buildFileName = 'docs.gradle'
|
|
|
|
|
|
|
|
rootProject.name = 'spring-security'
|
2010-01-10 23:31:23 +00:00
|
|
|
|
|
|
|
rootProject.children.each {project ->
|
|
|
|
assert project.projectDir.isDirectory()
|
2010-02-08 23:57:04 +00:00
|
|
|
assert project.buildFile.isFile()
|
2012-10-01 14:46:37 -05:00
|
|
|
}
|