-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
39 lines (35 loc) · 1.15 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
plugins {
id("net.twisterrob.inventory.root")
}
tasks.register("clean", Delete.class) { clean ->
clean.dependsOn(gradle.includedBuilds*.task(":cleanFull"))
clean.delete(project.layout.buildDirectory)
}
tasks.register("build") { build ->
build.dependsOn(gradle.includedBuilds*.task(":build"))
}
idea {
module {
excludeDirs += [
// local untracked folder for junk
rootProject.file("temp"),
rootProject.file("android/src/main/future"),
]
}
}
// TODEL https://issuetracker.google.com/issues/222730176
// This makes sure to pick up all subprojects not just direct children.
// com.android.build.gradle.internal.plugins.ReportingPlugin reads the subprojects in afterEvaluate,
// so this will run at the right time for it to observe evaluated children.
subprojects.forEach { evaluationDependsOn(it.path) } // evaluationDependsOnSubprojects()
// https://developer.android.com/studio/test/command-line#multi-module-reports-instrumented-tests
apply(plugin: "android-reporting")
afterEvaluate {
tasks.named("mergeAndroidReports").configure {
mustRunAfter(dependsOn)
setDependsOn([ ])
doFirst {
resultsDirectories.removeIf { !it.exists() }
}
}
}