Files
HMCL/settings.gradle
huanghongxun 0656227183 HMCL 2.3.2
2015-06-22 16:47:05 +08:00

21 lines
585 B
Groovy

rootProject.name = 'HMCL'
// Find the directories containing a "build.gradle" file in the root directory
// of the project. That is, every directory containing a "build.gradle" will
// be automatically the subproject of this project.
def subDirs = rootDir.listFiles(new FileFilter() {
public boolean accept(File file) {
if (!file.isDirectory()) {
return false
}
if (file.name == 'buildSrc') {
return false
}
return new File(file, 'build.gradle').isFile()
}
});
subDirs.each { File dir ->
include dir.name
}