-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle.kts
81 lines (74 loc) · 2.07 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
73
74
75
76
77
78
79
80
81
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
extra.apply {
set("compile_sdk_version", 34)
set("build_tool_version", "34.0.0")
set("min_sdk_version", 23)
}
repositories {
google()
mavenCentral()
}
dependencies {
classpath(libs.android.gradle.plugin)
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${libs.versions.kotlin.get()}")
}
}
plugins {
alias(libs.plugins.binary.compatability.validator)
alias(libs.plugins.doctor)
alias(libs.plugins.detekt)
alias(libs.plugins.module.graph)
alias(libs.plugins.android.application) apply false
alias(libs.plugins.kotlin.android) apply false
alias(libs.plugins.kotlin.parcelize) apply false
alias(libs.plugins.compose) apply false
}
apiValidation {
ignoredProjects.addAll(
listOf(
"demo",
"demoApps",
"demoAppDrawer",
"demoAppRow",
"demoAppSearch",
"demoBrowser",
"demoCalculator",
"demoCalendar",
"demoCamera",
"demoLauncher",
"demoMetroSettings",
"demoRadio",
"demoSettings",
"demoWordle",
"seattle"
)
)
}
detekt {
config.setFrom(file("$project.rootDir/config/detekt/detekt.yml"))
buildUponDefaultConfig = true
}
doctor {
disallowMultipleDaemons = (System.getenv("CI") == "false")
GCWarningThreshold = 0.10f
GCFailThreshold = 0.9f
failOnEmptyDirectories = true
warnWhenJetifierEnabled = true
negativeAvoidanceThreshold = 500
warnWhenNotUsingParallelGC = true
disallowCleanTaskDependencies = true
warnIfKotlinCompileDaemonFallback = true
javaHome {
ensureJavaHomeMatches = true
ensureJavaHomeIsSet = true
failOnError.set(true)
}
}
moduleGraphConfig {
readmePath.set("./README.md")
heading.set("### Graph")
}
tasks.register("clean", Delete::class.java) {
delete(rootProject.layout.buildDirectory)
}