mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-03-01 17:25:53 +08:00
21 lines
585 B
Groovy
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
|
||
|
}
|