Convert Spring Boot Data Geode/GemFire project into a Gradle project.

This commit is contained in:
John Blum
2018-01-24 16:10:53 -08:00
parent 27adcb723d
commit acabf3fccb
11 changed files with 400 additions and 0 deletions

33
settings.gradle Normal file
View File

@@ -0,0 +1,33 @@
rootProject.name = 'spring-boot-data-geode-build'
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
}
}