-
Notifications
You must be signed in to change notification settings - Fork 16
/
build.gradle.kts
43 lines (39 loc) · 1.24 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
plugins {
alias(libs.plugins.android.application) apply false
alias(libs.plugins.android.library) apply false
alias(libs.plugins.android.lint) apply false
alias(libs.plugins.google.ksp) apply false
alias(libs.plugins.kotlin.android) apply false
alias(libs.plugins.kotlin.jvm) apply false
alias(libs.plugins.kotlin.parcelize) apply false
alias(libs.plugins.ktlint) apply false
alias(libs.plugins.aboutlibraries) apply false
alias(libs.plugins.hilt) apply false
alias(libs.plugins.quadrant) apply false
}
allprojects {
apply(
plugin =
rootProject.libs.plugins.ktlint
.get()
.pluginId,
)
}
// GitHub action runners can timeout resulting in occasional test flakiness.
// Re-run tests on CI to work around this, while disallowing failing tests
// when developing locally.
subprojects {
val isCiBuild = providers.environmentVariable("CI").isPresent
if (isCiBuild) {
tasks.withType<Test>().configureEach {
develocity.testRetry {
maxRetries = 4
maxFailures = 5
failOnPassedAfterRetry = false
}
}
}
}
tasks.register<Delete>("clean") {
delete(layout.buildDirectory)
}