0
0
mirror of https://github.com/thunderbird/thunderbird-android.git synced 2024-09-19 19:52:14 +02:00
thunderbird-android/build.gradle.kts

47 lines
1.3 KiB
Plaintext
Raw Permalink Normal View History

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
alias(libs.plugins.android.test) apply false
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
alias(libs.plugins.kotlin.parcelize) apply false
alias(libs.plugins.ksp) apply false
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 {
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
}
}
2014-08-31 01:10:13 +02:00
}
2023-02-13 15:59:46 +01:00
tasks.register("testsOnCi") {
val skipTests = setOf("testReleaseUnitTest")
2023-02-13 15:59:46 +01:00
dependsOn(
subprojects.map { project -> project.tasks.withType(Test::class.java) }
.flatten()
.filterNot { task -> task.name in skipTests },
2023-02-13 15:59:46 +01:00
)
}
2023-04-18 10:47:21 +02:00
tasks.named<Wrapper>("wrapper") {
gradleVersion = libs.versions.gradle.get()
distributionType = Wrapper.DistributionType.ALL
}