2016-04-11 10:47:06 -04:00
|
|
|
rootProject.name = 'spring-security'
|
|
|
|
|
|
|
|
rootProject.children.each {project ->
|
|
|
|
//assert project.projectDir.isDirectory()
|
|
|
|
//assert project.buildFile.isFile()
|
|
|
|
}
|
|
|
|
|
2010-01-19 23:14:48 -05:00
|
|
|
def String[] modules = [
|
2015-03-23 12:14:26 -04:00
|
|
|
'core',
|
|
|
|
'data',
|
|
|
|
'remoting',
|
|
|
|
'web',
|
|
|
|
'ldap',
|
|
|
|
'acl',
|
|
|
|
'config',
|
|
|
|
'cas',
|
|
|
|
'openid',
|
|
|
|
'taglibs',
|
|
|
|
'aspects',
|
|
|
|
'crypto',
|
|
|
|
'messaging',
|
|
|
|
'test'
|
2010-01-10 18:31:23 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
include modules
|
|
|
|
|
|
|
|
modules.each {name ->
|
2015-03-23 12:14:26 -04:00
|
|
|
def p = findProject(":${name}")
|
|
|
|
p.name = "spring-security-${name}"
|
|
|
|
p.buildFileName = "${name}.gradle"
|
2010-01-10 18:31:23 -05:00
|
|
|
}
|
|
|
|
|
2016-04-11 10:47:06 -04:00
|
|
|
def String[] itest = [
|
|
|
|
'web',
|
|
|
|
'context'
|
|
|
|
]
|
2010-01-10 18:31:23 -05:00
|
|
|
|
2010-02-08 18:57:04 -05:00
|
|
|
include itest
|
|
|
|
|
|
|
|
itest.each { name ->
|
2015-03-23 12:14:26 -04:00
|
|
|
def p = findProject(":${name}")
|
|
|
|
p.name = "itest-${name}"
|
|
|
|
p.buildFileName = "itest-${name}.gradle"
|
|
|
|
p.projectDir = new File(settingsDir, "itest/${name}");
|
2010-02-08 18:57:04 -05:00
|
|
|
}
|
|
|
|
|
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
|
|
|
|
2013-12-09 16:51:49 -05:00
|
|
|
include 'bom'
|
2016-04-11 10:47:06 -04:00
|
|
|
|
2013-12-09 16:51:49 -05:00
|
|
|
findProject(':bom').name = 'spring-security-bom'
|
2016-04-11 10:47:06 -04:00
|
|
|
|
2016-04-28 03:40:15 -04:00
|
|
|
includeSamples("samples" + File.separator + "xml")
|
|
|
|
includeSamples("samples" + File.separator + "javaconfig")
|
2016-04-28 13:25:52 -04:00
|
|
|
includeSamples("samples" + File.separator + "boot")
|
2016-04-11 10:47:06 -04:00
|
|
|
|
|
|
|
void includeSamples(String samplesDir) {
|
|
|
|
FileTree tree = fileTree(samplesDir) {
|
2016-04-28 03:40:15 -04:00
|
|
|
include '**' + File.separator + '*.gradle'
|
2016-04-11 10:47:06 -04:00
|
|
|
}
|
|
|
|
tree.each {File file ->
|
2016-04-28 03:40:15 -04:00
|
|
|
String projectDir = file.path.substring(file.path.indexOf(samplesDir), file.path.lastIndexOf(File.separator))
|
|
|
|
String projectPath = projectDir.substring(projectDir.lastIndexOf(File.separator) + 1)
|
|
|
|
String projectNamePrefix = samplesDir.substring(samplesDir.lastIndexOf(File.separator) + 1).toLowerCase();
|
2016-04-11 10:47:06 -04:00
|
|
|
|
|
|
|
include projectPath
|
|
|
|
|
|
|
|
def project = findProject(":${projectPath}")
|
|
|
|
|
|
|
|
project.name = "spring-security-samples-${projectNamePrefix}-${project.name}"
|
|
|
|
project.projectDir = new File(settingsDir, projectDir)
|
|
|
|
|
|
|
|
if (!project.buildFile.exists()) {
|
2016-04-28 03:40:15 -04:00
|
|
|
project.buildFileName = file.path.substring(file.path.lastIndexOf(File.separator) + 1)
|
2016-04-11 10:47:06 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|