25 lines
697 B
Groovy
25 lines
697 B
Groovy
rootProject.name = 'numass'
|
|
|
|
def includeProjects;
|
|
includeProjects = {File dir, String prefix ->
|
|
dir.listFiles().each{
|
|
String name = prefix + ":" + it.getName();
|
|
if(it.isDirectory() && ! it.getName().startsWith("build")){
|
|
if(new File(it, 'build.gradle').isFile()){
|
|
include name
|
|
project(name).projectDir = it
|
|
}
|
|
includeProjects(it, name);
|
|
}
|
|
}
|
|
}
|
|
|
|
includeProjects(rootDir, '')
|
|
|
|
File dataforgeDir = new File(rootDir,'../dataforge');
|
|
|
|
if(dataforgeDir.exists()){
|
|
// include 'dataforge'
|
|
// project(':dataforge').projectDir = dataforgeDir
|
|
includeProjects(dataforgeDir,'')
|
|
} |