-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
50 lines (43 loc) · 1.16 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
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.nav.safeargs) apply false
alias(libs.plugins.kapt) apply false
alias(libs.plugins.kotlin.jvm) apply false
alias(libs.plugins.hilt) apply false
alias(libs.plugins.kotlin.serialization) apply false
alias(libs.plugins.shadow) apply false
alias(libs.plugins.ksp) apply false
alias(libs.plugins.ktlint)
alias(libs.plugins.detekt)
alias(libs.plugins.nexus.publish)
alias(libs.plugins.dokka)
}
apply {
from("${rootProject.projectDir}/scripts/publish-root.gradle")
from("publish.gradle")
}
tasks.register("cleanAll", type = Delete::class) {
allprojects.map(Project::getBuildDir).forEach(::delete)
}
subprojects {
apply(plugin = "org.jlleitschuh.gradle.ktlint")
apply(plugin = "io.gitlab.arturbosch.detekt")
configurations {
ktlint
detekt
}
repositories {
mavenCentral()
}
detekt {
parallel = true
buildUponDefaultConfig = true
config.setFrom(files("$rootDir/detekt-config.yml"))
}
ktlint {
debug.set(true)
verbose.set(true)
}
}