diff --git a/settings.gradle b/settings.gradle index bd741d42..c1f8751e 100644 --- a/settings.gradle +++ b/settings.gradle @@ -12,12 +12,14 @@ 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;