-
Notifications
You must be signed in to change notification settings - Fork 20
/
build.gradle.kts
49 lines (42 loc) · 1.31 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
apply(from = "./buildScripts/install-git-hooks.gradle.kts")
plugins {
alias(libs.plugins.android.application) apply false
alias(libs.plugins.kotlin.parcelize) apply false
alias(libs.plugins.hilt) apply false
alias(libs.plugins.kotlin.serialization) apply false
alias(libs.plugins.ksp) apply false
alias(libs.plugins.kotlinx.kover) apply false
alias(libs.plugins.detekt)
alias(libs.plugins.android.test) apply false
alias(libs.plugins.kotlin.android) apply false
alias(libs.plugins.baselineprofile) apply false
alias(libs.plugins.sentry) apply false
}
allprojects {
apply(plugin = "io.gitlab.arturbosch.detekt")
}
detekt {
toolVersion = libs.versions.detekt.get()
config.from(files("config/detekt/detekt.yml"))
buildUponDefaultConfig = true
}
setupTestLogging()
fun Project.setupTestLogging() {
for (sub in subprojects) {
sub.tasks.withType<Test> {
testLogging {
events("standardOut")
showStandardStreams = true
}
}
}
}
tasks.register("clean", Delete::class) {
delete(rootProject.layout.buildDirectory)
}
// Exclude the NDK from the Sentry Android SDK as we don't use it
subprojects {
configurations.configureEach {
exclude(group = "io.sentry", module = "sentry-android-ndk")
}
}