forked from material-components/material-components-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle
41 lines (33 loc) · 1.41 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
30
31
32
33
34
35
36
37
38
39
40
41
include ':lib'
include ':testing:java:com:google:android:material:testapp'
include ':testing:java:com:google:android:material:testapp:animation'
include ':testing:java:com:google:android:material:testapp:base'
include ':testing:java:com:google:android:material:testapp:custom'
include ':testing:java:com:google:android:material:testapp:theme'
include ':tests'
include ':tests:javatests:com:google:android:material:animation'
include ':tests:javatests:com:google:android:material:theme'
include ':catalog'
include ':material-theme-builder'
include ':demos:java:io:material:demo:shrine'
include ':demos:java:io:material:demo:shrine:filters'
include ':demos:java:io:material:demo:shrine:products'
include ':demos:java:io:material:demo:shrine:theme'
rootProject.children.each { p ->
def allChildren = []
def curChildren = p.children
while (!curChildren.isEmpty()) {
allChildren.addAll(curChildren)
curChildren =
(curChildren.findResults {
it.children.isEmpty() ? null : it.children
}).flatten()
}
allChildren.each { project ->
// Give each project a repository-wide unique name based on their path from
// the top-level dir (e.g. the project at demos/java/io/material/shrine will
// be named :demos-java-io-material-shrine). Doing so avoids the need to
// have unique directory names throughout our subprojects.
project.name = project.path.substring(1).replace(':', '-')
}
}