Format build script.
This commit is contained in:
@@ -12,12 +12,14 @@ buildFiles.each { File buildFile ->
|
|||||||
boolean isDefaultName = 'build.gradle'.equals(buildFile.name)
|
boolean isDefaultName = 'build.gradle'.equals(buildFile.name)
|
||||||
|
|
||||||
if (isDefaultName) {
|
if (isDefaultName) {
|
||||||
|
|
||||||
String buildFilePath = buildFile.parentFile.absolutePath
|
String buildFilePath = buildFile.parentFile.absolutePath
|
||||||
String projectPath = buildFilePath.replace(rootDirPath, '').replaceAll(File.separator, ':')
|
String projectPath = buildFilePath.replace(rootDirPath, '').replaceAll(File.separator, ':')
|
||||||
|
|
||||||
include projectPath
|
include projectPath
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
||||||
String projectName = buildFile.name.replace('.gradle', '');
|
String projectName = buildFile.name.replace('.gradle', '');
|
||||||
String projectPath = ':' + projectName;
|
String projectPath = ':' + projectName;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user