-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
47 lines (43 loc) · 1.46 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("com.gooddictionary.root")
alias(libs.plugins.android.application) apply false
alias(libs.plugins.jetbrains.kotlin.android) apply false
alias(libs.plugins.android.library) apply false
alias(libs.plugins.jetbrains.kotlin.jvm) apply false
alias(libs.plugins.ksp) apply false
alias(libs.plugins.spotless) apply false
alias(libs.plugins.benchmark) apply false
alias(libs.plugins.hilt) apply false
id("com.savvasdalkitsis.module-dependency-graph") version "0.10"
alias(libs.plugins.retry) apply false
id("com.osacky.doctor") version "0.9.2"
}
subprojects {
tasks.withType<KotlinCompile>().configureEach {
kotlinOptions {
if (project.findProperty("gooddictionary.enableComposeCompilerReports") == "true") {
val path = layout.buildDirectory.asFile.map { it.absolutePath }.get()
freeCompilerArgs +=
listOf(
"-P",
"plugin:androidx.compose.compiler.plugins.kotlin:reportsDestination=" +
path + "/compose_metrics",
)
freeCompilerArgs +=
listOf(
"-P",
"plugin:androidx.compose.compiler.plugins.kotlin:metricsDestination=" +
path + "/compose_metrics",
)
}
}
}
}
tasks.withType<Test>().configureEach {
configure<org.gradle.testretry.TestRetryTaskExtension> {
maxRetries.set(1)
maxFailures.set(20)
failOnPassedAfterRetry.set(false)
}
}