-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
29 lines (25 loc) · 1.21 KB
/
build.gradle.kts
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
plugins {
id("net.twisterrob.gradle.plugin.root")
id("net.twisterrob.gradle.plugin.quality")
id("io.gitlab.arturbosch.detekt")
}
// Register root tasks before evaluating subprojects.
tasks.register<io.gitlab.arturbosch.detekt.report.ReportMergeTask>("detektReportMergeSarif") {
output.set(rootProject.layout.buildDirectory.file("reports/detekt/merge.sarif"))
}
tasks.register<io.gitlab.arturbosch.detekt.report.ReportMergeTask>("detektReportMergeXml") {
output.set(rootProject.layout.buildDirectory.file("reports/detekt/merge.xml"))
}
// 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")
tasks.register<Delete>("clean") {
delete(rootProject.layout.buildDirectory)
}
tasks.register("check") {
dependsOn(gradle.includedBuilds.map { it.task(":check") })
}