-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
43 lines (37 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import io.gitlab.arturbosch.detekt.Detekt
buildscript {
dependencies {
classpath("io.gitlab.arturbosch.detekt:detekt-gradle-plugin:${libs.versions.detekt}")
classpath("org.jetbrains.kotlin:kotlin-serialization:${libs.versions.kotlin}")
classpath(libs.google.services)
classpath(libs.firebase.crashlytics)
}
}
plugins {
alias(libs.plugins.android.application) apply false
alias(libs.plugins.android.library) apply false
alias(libs.plugins.kotlin.android) apply false
alias(libs.plugins.hilt) apply false
alias(libs.plugins.ksp) apply false
alias(libs.plugins.kotlinx.serialization)
alias(libs.plugins.detekt)
alias(libs.plugins.spotless)
}
subprojects {
apply(plugin = rootProject.libs.plugins.spotless.get().pluginId)
apply(from = "${project.rootDir}/spotless.gradle")
}
detekt {
toolVersion = rootProject.libs.versions.detekt.toString()
config = files("config/detekt.yml")
buildUponDefaultConfig = true
}
tasks.withType<Detekt>().configureEach {
reports {
xml.required.set(true)
html.required.set(true)
txt.required.set(true)
sarif.required.set(true)
}
}
apply(from = "config-properties.gradle.kts")