-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
39 lines (35 loc) · 1 KB
/
build.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
task build {
// For each included build run ':app:assembleDebug'
gradle.includedBuilds.each { build ->
dependsOn build.task(':app:assembleDebug')
}
}
task release {
// For each included build run ':app:build'
gradle.includedBuilds.each { build ->
dependsOn build.task(':app:build')
}
}
task install {
// For each included build run ':app:installDebug'
gradle.includedBuilds.each { build ->
dependsOn build.task(':app:installDebug')
}
}
task installRelease {
// For each included build run ':app:installRelease'
gradle.includedBuilds.each { build ->
dependsOn build.task(':app:installRelease')
}
}
task clean {
// For each included build run 'clean' on each project.
gradle.includedBuilds.each { build ->
dependsOn build.task(':clean')
build.projectDir.eachDir { dir ->
if (new File(dir, 'build.gradle').isFile()) {
dependsOn build.task(":${dir.name}:clean")
}
}
}
}