Files
spring-test-data-geode/settings.gradle
John Blum d3dc626277 Reorganize project as a multi-module project with modules for both Spring Data for Apache Geode and Pivotal GemFire.
Create Maven build files for modules.

Create Gradle build files for modules.
2018-05-17 21:07:54 -07:00

36 lines
855 B
Groovy

rootProject.name = 'spring-test-data-geode'
FileTree buildFiles = fileTree(rootDir) {
include '**/*.gradle'
exclude '/build.gradle', 'settings.gradle', '**/gradle', 'buildSrc', '.*'
}
String rootDirPath = rootDir.absolutePath + File.separator
buildFiles.each { File buildFile ->
boolean isDefaultName = 'build.gradle'.equals(buildFile.name)
if (isDefaultName) {
String buildFilePath = buildFile.parentFile.absolutePath
String projectPath = buildFilePath.replace(rootDirPath, '').replaceAll(File.separator, ':')
include projectPath
}
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
}
}