2023-01-08 03:14:00 +01:00
|
|
|
plugins {
|
|
|
|
alias(libs.plugins.android.application) apply false
|
|
|
|
alias(libs.plugins.android.library) apply false
|
|
|
|
alias(libs.plugins.android.lint) apply false
|
2024-01-19 16:37:20 +01:00
|
|
|
alias(libs.plugins.android.test) apply false
|
2024-06-13 16:37:38 +02:00
|
|
|
alias(libs.plugins.compose.compiler) apply false
|
2023-01-08 03:14:00 +01:00
|
|
|
alias(libs.plugins.kotlin.android) apply false
|
|
|
|
alias(libs.plugins.kotlin.jvm) apply false
|
2024-01-19 16:37:20 +01:00
|
|
|
alias(libs.plugins.kotlin.parcelize) apply false
|
|
|
|
alias(libs.plugins.ksp) apply false
|
2023-02-13 17:18:33 +01:00
|
|
|
|
2023-02-16 11:00:25 +01:00
|
|
|
id("thunderbird.quality.spotless")
|
2023-02-24 11:01:41 +01:00
|
|
|
id("thunderbird.dependency.check")
|
2013-05-25 23:14:46 +02:00
|
|
|
}
|
|
|
|
|
2023-02-13 15:59:46 +01:00
|
|
|
val propertyTestCoverage: String? by extra
|
2014-08-31 01:10:13 +02:00
|
|
|
|
2022-12-07 05:19:41 +01:00
|
|
|
allprojects {
|
2023-02-13 15:59:46 +01:00
|
|
|
extra.apply {
|
2023-02-23 11:13:01 +01:00
|
|
|
set("testCoverageEnabled", propertyTestCoverage != null)
|
2023-02-13 15:59:46 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks.withType<Test> {
|
|
|
|
testLogging {
|
|
|
|
exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
|
|
|
|
showCauses = true
|
|
|
|
showExceptions = true
|
|
|
|
showStackTraces = true
|
2021-05-28 13:26:19 +02:00
|
|
|
}
|
|
|
|
}
|
2014-08-31 01:10:13 +02:00
|
|
|
}
|
2022-01-28 04:07:22 +01:00
|
|
|
|
2023-02-13 15:59:46 +01:00
|
|
|
tasks.register("testsOnCi") {
|
2023-11-24 14:05:40 +01:00
|
|
|
val skipTests = setOf("testReleaseUnitTest")
|
|
|
|
|
2023-02-13 15:59:46 +01:00
|
|
|
dependsOn(
|
|
|
|
subprojects.map { project -> project.tasks.withType(Test::class.java) }
|
2022-01-28 04:07:22 +01:00
|
|
|
.flatten()
|
2023-11-24 14:05:40 +01:00
|
|
|
.filterNot { task -> task.name in skipTests },
|
2023-02-13 15:59:46 +01:00
|
|
|
)
|
2022-01-28 04:07:22 +01:00
|
|
|
}
|
2023-04-18 10:47:21 +02:00
|
|
|
|
|
|
|
tasks.named<Wrapper>("wrapper") {
|
|
|
|
gradleVersion = libs.versions.gradle.get()
|
|
|
|
distributionType = Wrapper.DistributionType.ALL
|
|
|
|
}
|