13 lines
348 B
Groovy
13 lines
348 B
Groovy
def isSubproject = { File file ->
|
|
file.isDirectory() &&
|
|
!file.name.contains('.git') &&
|
|
!file.name.contains('.gradle') &&
|
|
!file.name.contains('.idea') &&
|
|
!file.name.contains('build') &&
|
|
!file.name.contains('gradle')
|
|
}
|
|
|
|
String[] subprojects = rootDir.listFiles().findAll(isSubproject).collect { it.name }
|
|
|
|
include subprojects
|