-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
48 lines (44 loc) · 1.36 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
47
48
buildscript {
repositories {
google()
mavenCentral()
}
} // Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
// alias(libs.plugins.android.application) version("7.3.1") apply false
alias(libs.plugins.android.library) version ("7.3.1") apply false
alias(libs.plugins.kotlin.android) version ("1.7.20") apply false
alias(libs.plugins.hilt) version ("2.44") apply false
alias(libs.plugins.spotless)
alias(libs.plugins.ktlint)
alias(libs.plugins.detekt)
id("com.android.library") version "7.3.1" apply false
id("org.jetbrains.kotlin.jvm") version "1.7.20" apply false
}
allprojects {
apply(plugin = "org.jlleitschuh.gradle.ktlint")
ktlint {
android.set(true)
verbose.set(true)
filter {
exclude { element -> element.file.path.contains("generated/") }
}
}
}
subprojects {
apply(plugin = "io.gitlab.arturbosch.detekt")
detekt {
config = files("${project.rootDir}/detekt.yml")
parallel = true
}
apply(plugin = "com.diffplug.spotless")
spotless {
kotlin {
target("**/*.kt")
licenseHeaderFile(
rootProject.file("${project.rootDir}/spotless/copyright.kt"),
"^(package|object|import|interface)"
)
}
}
}