-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
46 lines (39 loc) · 1.19 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
44
45
46
plugins {
id(BuildPlugins.KT_LINT) version Versions.KT_LINT
id("io.gitlab.arturbosch.detekt") version "1.21.0"
id("com.android.library") version "7.3.0" apply false
id("org.jetbrains.kotlin.android") version ProjectProperties.KOTLIN_VERSION apply false
}
dependencies {
detekt("io.gitlab.arturbosch.detekt:detekt-formatting:1.21.0")
}
allprojects {
apply {
plugin("org.jlleitschuh.gradle.ktlint")
plugin("io.gitlab.arturbosch.detekt")
}
afterEvaluate {
detekt {
autoCorrect = true
buildUponDefaultConfig = true
config.setFrom(files("$rootDir/detekt-config.yml"))
}
}
}
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath(Dependency.GradlePlugin.GRADLE_ANDROID)
classpath(Dependency.GradlePlugin.GRADLE_KOTLIN)
classpath(Dependency.GradlePlugin.GRADLE_HILT)
classpath(Dependency.GradlePlugin.GOOGLE_SERVICE)
classpath(Dependency.GradlePlugin.FIREBASE_DISTRIBUTION)
classpath(Dependency.GradlePlugin.FIREBASE_CRASHLYTICS)
}
}
tasks.register("clean", Delete::class) {
delete(rootProject.buildDir)
}