2016-04-11 10:47:06 -04:00
|
|
|
rootProject.name = 'spring-security'
|
|
|
|
|
2017-03-28 16:45:30 -04:00
|
|
|
FileTree buildFiles = fileTree(rootDir) {
|
|
|
|
List excludes = gradle.startParameter.projectProperties.get("excludeProjects")?.split(",")
|
|
|
|
include '**/*.gradle'
|
|
|
|
exclude '**/gradle', 'settings.gradle', 'buildSrc', '/build.gradle', '.*', 'out'
|
|
|
|
exclude '**/grails3'
|
|
|
|
if(excludes) {
|
|
|
|
exclude excludes
|
|
|
|
}
|
2010-02-08 18:57:04 -05:00
|
|
|
}
|
|
|
|
|
2017-03-28 16:45:30 -04:00
|
|
|
String rootDirPath = rootDir.absolutePath + File.separator
|
|
|
|
buildFiles.each { File buildFile ->
|
2016-04-11 10:47:06 -04:00
|
|
|
|
2017-03-28 16:45:30 -04:00
|
|
|
boolean isDefaultName = 'build.gradle'.equals(buildFile.name)
|
|
|
|
if(isDefaultName) {
|
|
|
|
String buildFilePath = buildFile.parentFile.absolutePath
|
|
|
|
String projectPath = buildFilePath.replace(rootDirPath, '').replaceAll(File.separator, ':')
|
2016-04-11 10:47:06 -04:00
|
|
|
include projectPath
|
2017-03-28 16:45:30 -04:00
|
|
|
} else {
|
|
|
|
String projectName = buildFile.name.replace('.gradle', '');
|
|
|
|
String projectPath = ':' + projectName;
|
|
|
|
include projectPath
|
|
|
|
def project = findProject("${projectPath}")
|
|
|
|
project.name = projectName
|
|
|
|
project.projectDir = buildFile.parentFile
|
|
|
|
project.buildFileName = buildFile.name
|
2016-04-11 10:47:06 -04:00
|
|
|
}
|
|
|
|
}
|