-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
38 lines (33 loc) · 1.13 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
mavenCentral()
}
}
plugins {
id 'com.android.application' version '7.4.2' apply false
id 'com.android.library' version '7.4.2' apply false
id 'org.jetbrains.kotlin.android' version '1.8.0' apply false
id("io.gitlab.arturbosch.detekt").version("1.22.0")
}
subprojects {
afterEvaluate {
plugins.apply("io.gitlab.arturbosch.detekt")
dependencies {
detektPlugins(project(":rules"))
}
def detektTaskProvider = tasks.named("detekt")
detektTaskProvider.configure {
reports {
html.required.set(true)
sarif.required.set(false)
xml.required.set(false)
txt.required.set(false)
md.required.set(false)
html.outputLocation.set(file("${project.rootDir.absolutePath}/build/reports/detekt/report.html"))
}
}
if (project.name == "rules") return
tasks.getByName("preBuild").finalizedBy(detektTaskProvider)
}
}