-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsettings.gradle
29 lines (29 loc) · 1.03 KB
/
settings.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
ext {
secondLevel = ['java-projects', 'task-projects', 'copy-projects']
subProjects = secondLevel.collect {
[parent: it, dir: new File(it)]
}.collect {
[
parent: it.parent,
dirs: it.dir.listFiles().findAll {
it.isDirectory() && !(it.name in ['.gradle', 'biuld', 'images', 'gradle'])
}
]
}.collect {map ->
map.dirs.collect {
def pn = it.name
def sub = ['init-project', 'dep-project']
def isInInit = pn in sub
def pjs = !isInInit ?
[":${map.parent}:${it.name}" as String] :
it.listFiles().findAll {
it.isDirectory() && !(it.name in ['gradle', 'build', 'src', '.gradle', 'libs'])
}.collect {
":${map.parent}:${pn}:${it.name}" as String
}
return pjs
}
}.flatten().toArray(new String[0])
}
include subProjects
rootProject.name = 'javajo-gradle'