-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
72 lines (64 loc) · 2.14 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
61
62
63
64
65
66
67
68
69
70
71
72
import dev.iurysouza.modulegraph.Theme
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
alias(libs.plugins.android.application) apply false
alias(libs.plugins.jetbrains.kotlin.android) apply false
alias(libs.plugins.compose.compiler) apply false
alias(libs.plugins.hilt.plugin) apply false
alias(libs.plugins.ksp) apply false
alias(libs.plugins.room.compiler) apply false
alias(libs.plugins.jlleitschuh) apply true
alias(libs.plugins.detekt) apply true
alias(libs.plugins.spotless) apply true
alias(libs.plugins.android.library) apply false
alias(libs.plugins.module.graph)
alias(libs.plugins.google.gms.google.services) apply false
alias(libs.plugins.google.firebase.crashlytics) apply false
alias(libs.plugins.dokka)
}
subprojects {
apply(plugin = "org.jlleitschuh.gradle.ktlint")
// apply(plugin = "org.jetbrains.dokka")
ktlint {
android.set(true)
outputToConsole.set(true)
ignoreFailures.set(false)
filter {
exclude("**/build/**")
}
}
apply(plugin = "io.gitlab.arturbosch.detekt")
detekt {
buildUponDefaultConfig = true
config.setFrom("${project.rootDir}/config/detekt/detekt.yml")
parallel = true
}
}
allprojects {
apply(plugin = "org.jetbrains.dokka")
}
/**
* fixes the error [Explicit Dependency](https://www.reddit.com/r/Kotlin/comments/18cjcbj/dokka_with_multilevel_multimodule_projects_using/)
*/
tasks.dokkaHtmlMultiModule {
moduleName.set("GitIssues Dokka Documentation")
dependsOn(":core:dokkaHtmlMultiModule")
dependsOn(":feature:dokkaHtmlMultiModule")
}
moduleGraphConfig {
readmePath.set("./README.md")
heading = "### Module Graph"
theme.set(
Theme.BASE(
mapOf(
"primaryTextColor" to "#fff",
"primaryColor" to "#5a4f7c",
"primaryBorderColor" to "#5a4f7c",
"lineColor" to "#f5a623",
"tertiaryColor" to "#40375c",
"fontSize" to "12px",
),
focusColor = "#FA8140",
),
)
}