ZenScript main repository
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

settings.gradle 588B

1234567891011121314151617181920
  1. rootProject.name = 'ZenCode'
  2. // Find the directories containing a "build.gradle" file in the root directory
  3. // of the project. That is, every directory containing a "build.gradle" will
  4. // be automatically the subproject of this project.
  5. def subDirs = rootDir.listFiles(new FileFilter() {
  6. public boolean accept(File file) {
  7. if (!file.isDirectory()) {
  8. return false
  9. }
  10. if (file.name == 'buildSrc') {
  11. return false
  12. }
  13. return new File(file, 'build.gradle').isFile()
  14. }
  15. });
  16. subDirs.each { File dir ->
  17. include dir.name
  18. }