-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
51 lines (48 loc) · 1.58 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
import dev.iurysouza.modulegraph.Theme
import org.jlleitschuh.gradle.ktlint.reporter.ReporterType
plugins {
// this is necessary to avoid the plugins to be loaded multiple times
// in each subproject's classloader
alias(libs.plugins.androidApplication) apply false
alias(libs.plugins.androidLibrary) apply false
alias(libs.plugins.jetbrainsCompose) apply false
alias(libs.plugins.compose.compiler) apply false
alias(libs.plugins.kotlinMultiplatform) apply false
alias(libs.plugins.ktlint) apply false
alias(libs.plugins.module.graph)
}
subprojects {
apply(plugin = "org.jlleitschuh.gradle.ktlint")
configure<org.jlleitschuh.gradle.ktlint.KtlintExtension> {
reporters {
reporter(ReporterType.JSON)
}
filter {
// exclude("**/generated/**")
// exclude("**/build/**")
exclude {
projectDir.toURI().relativize(it.file.toURI()).path.contains("/generated/")
}
exclude {
projectDir.toURI().relativize(it.file.toURI()).path.contains("/build/")
}
}
}
}
moduleGraphConfig {
readmePath.set("./README.md")
heading.set("### 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"
),
)
}