-
-
Notifications
You must be signed in to change notification settings - Fork 30
/
build.gradle.kts
60 lines (51 loc) · 1.6 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
54
55
56
57
58
59
60
import io.gitlab.arturbosch.detekt.Detekt
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
alias(libs.plugins.kotlin.android) apply false
alias(libs.plugins.navigation.safeargs) apply false
alias(libs.plugins.android.application) apply false
alias(libs.plugins.google.services) apply false
alias(libs.plugins.crashlytics) apply false
alias(libs.plugins.kotlin.serialization) apply false
alias(libs.plugins.test) apply false
alias(libs.plugins.ksp) apply false
alias(libs.plugins.aboutlibraries) apply false
alias(libs.plugins.github.release) apply false
alias(libs.plugins.baselineprofile) apply false
alias(libs.plugins.android.library) apply false
alias(libs.plugins.detekt)
}
detekt {
toolVersion = "1.23.3"
// config.setFrom(file("config/detekt/detekt.yml"))
buildUponDefaultConfig = true
}
tasks.withType<Detekt>().configureEach {
reports {
xml.required.set(false)
html.required.set(true)
txt.required.set(false)
sarif.required.set(false)
md.required.set(false)
}
}
tasks.register<Delete>("clean").configure {
delete(rootProject.layout.buildDirectory)
}
// play store and github publishing scripts
// remove if not needed
tasks.register<GradleBuild>("cleanBuildDraft") {
tasks = listOf(
"clean",
"genDict",
"fetchCrowdinMembers",
"publishReleaseBundle",
"assembleRelease",
)
}
tasks.register<GradleBuild>("finalizeDraft") {
tasks = listOf(
"promoteArtifact",
"githubRelease",
)
}