44 lines
1.1 KiB
Groovy
44 lines
1.1 KiB
Groovy
pluginManagement {
|
|
repositories {
|
|
mavenCentral()
|
|
gradlePluginPortal()
|
|
maven { url 'https://repo.spring.io/release' }
|
|
if (version.endsWith('-SNAPSHOT')) {
|
|
maven { url "https://repo.spring.io/snapshot" }
|
|
}
|
|
}
|
|
}
|
|
|
|
rootProject.name = 'spring-session-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
|
|
}
|
|
}
|