-
Notifications
You must be signed in to change notification settings - Fork 12
/
build.gradle
87 lines (82 loc) · 2.38 KB
/
build.gradle
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
82
83
84
85
86
87
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath libs.gradle.android.plugin
classpath libs.kotlin.gradle
classpath libs.licensee
classpath libs.bugsnag.gradle
classpath libs.ruler
}
}
plugins {
alias(libs.plugins.ksp)
alias(libs.plugins.gradle.doctor)
alias(libs.plugins.gradle.buildtimetracker)
alias(libs.plugins.gradle.cachefix) apply false // Applied in convention plugins
alias(libs.plugins.dependencyanalysis)
}
doctor {
javaHome {
ensureJavaHomeIsSet = false
failOnError.set(false)
}
}
allprojects {
repositories {
google()
mavenCentral()
maven { url "https://jitpack.io" }
}
}
tasks.register('clean') {
delete rootProject.buildDir
}
dependencyAnalysis {
issues {
all {
ignoreKtx(true)
onUnusedDependencies {
severity("fail")
exclude(
"com.kizitonwose.calendar:compose", // False positive
"com.google.dagger:hilt-android", // False positive
)
}
onIncorrectConfiguration {
severity("fail")
exclude(
// Material3 is declared as an `api` dependency in the convention plugin,
// which is true for 99% of the modules (since at least a Compose screen is
// part of the public API)
"androidx.compose.material3:material3"
)
}
onUnusedAnnotationProcessors {
severity("fail")
}
onRedundantPlugins {
severity("fail")
}
}
}
dependencies {
bundle("compose-ui") {
includeGroup("androidx.compose.ui")
includeGroup("androidx.compose.runtime")
includeDependency("androidx.compose.foundation:foundation")
includeDependency("androidx.compose.foundation:foundation-layout")
}
bundle("compose-animation") {
includeGroup("androidx.compose.animation")
}
bundle("compose-runtime") {
includeGroup("androidx.compose.runtime")
}
bundle("compose-material") {
includeGroup("androidx.compose.material")
}
}
}