-
Notifications
You must be signed in to change notification settings - Fork 88
/
build.gradle.kts
53 lines (45 loc) · 1.48 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
49
50
51
52
53
plugins {
alias(libs.plugins.android.application) apply false
alias(libs.plugins.android.library) apply false
alias(libs.plugins.android.kotlin) apply false
alias(libs.plugins.multiplatform) apply false
alias(libs.plugins.jvm) apply false
alias(libs.plugins.googleServices.plugin) apply false
alias(libs.plugins.compose) apply false
alias(libs.plugins.compose.compiler) apply false
alias(libs.plugins.firebase.appDistribution.plugin) apply false
alias(libs.plugins.firebase.crashlytics.plugin) apply false
alias(libs.plugins.firebase.performance.plugin) apply false
alias(libs.plugins.ktLint)
alias(libs.plugins.detekt)
}
allprojects {
repositories {
google()
mavenCentral()
maven(url = "https://jitpack.io")
}
}
subprojects {
apply(plugin = "org.jlleitschuh.gradle.ktlint")
ktlint {
debug.set(true)
verbose.set(true)
android.set(false)
outputToConsole.set(true)
outputColorName.set("RED")
filter {
enableExperimentalRules.set(true)
exclude { projectDir.toURI().relativize(it.file.toURI()).path.contains("/generated/") }
include("**/kotlin/**")
}
}
apply(plugin = "io.gitlab.arturbosch.detekt")
detekt {
parallel = true
config = files("${project.rootDir}/config/detekt/detekt.yml")
}
}
tasks.register("clean").configure {
delete("build") // dependencyUpdates task, for example, writes here
}