2016-07-07 12:43:10 -06:00
|
|
|
def isSubproject = { File file ->
|
|
|
|
file.isDirectory() &&
|
|
|
|
!file.name.contains('.git') &&
|
|
|
|
!file.name.contains('.gradle') &&
|
|
|
|
!file.name.contains('.idea') &&
|
|
|
|
!file.name.contains('build') &&
|
2016-08-10 10:36:16 -06:00
|
|
|
!file.name.contains('gradle') &&
|
|
|
|
!file.name.contains('test')
|
2016-07-07 12:43:10 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
String[] subprojects = rootDir.listFiles().findAll(isSubproject).collect { it.name }
|
|
|
|
|
|
|
|
include subprojects
|