| if(new File(rootDir, 'common').canRead()) { |
| new File(rootDir, 'common').eachDir { dir -> |
| if(new File(dir, 'build.gradle').canRead()) { |
| def modulePath = ":${dir.name}" |
| include "${modulePath}" |
| def subproject = project("${modulePath}") |
| subproject.setProjectDir(dir) |
| } |
| } |
| new File(rootDir, 'prototype/plugins').eachDir { dir -> |
| if(new File(dir, 'build.gradle').canRead()) { |
| def modulePath = ":${dir.name}" |
| include "${modulePath}" |
| def subproject = project("${modulePath}") |
| subproject.setProjectDir(dir) |
| } |
| } |
| } else { |
| rootDir.eachDir { dir -> |
| if(new File(dir, 'build.gradle').canRead()) { |
| def modulePath = ":${dir.name}" |
| include "${modulePath}" |
| def subproject = project("${modulePath}") |
| subproject.setProjectDir(dir) |
| } |
| } |
| } |