OnJava8-Examples/settings.gradle
2021-02-10 12:04:53 -07:00

12 lines
308 B
Groovy

def isSubproject = { File file ->
file.isDirectory() &&
!file.name.startsWith('.') &&
!file.name.contains('build') &&
!file.name.contains('gradle') &&
!file.name.contains('test')
}
String[] subprojects = rootDir.listFiles().findAll(isSubproject).collect { it.name }
include subprojects