-
-
Notifications
You must be signed in to change notification settings - Fork 86
/
build.gradle.kts
52 lines (46 loc) · 1.65 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
50
51
52
import com.mikepenz.aboutlibraries.plugin.DuplicateMode
import org.gradle.api.tasks.testing.logging.TestLogEvent
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
plugins {
alias(libs.plugins.aboutLibraries) apply false
alias(libs.plugins.androidApplication) apply false
alias(libs.plugins.androidLibrary) apply false
alias(libs.plugins.composeCompiler) apply false
alias(libs.plugins.hilt) apply false
alias(libs.plugins.kotlinAndroid) apply false
alias(libs.plugins.kotlinJvm) apply false
alias(libs.plugins.ksp) apply false
alias(libs.plugins.ktlint) apply false
}
subprojects {
apply(plugin = "org.jlleitschuh.gradle.ktlint")
apply(plugin = "com.mikepenz.aboutlibraries.plugin")
configure<org.jlleitschuh.gradle.ktlint.KtlintExtension> {
android.set(true)
outputColorName.set("RED")
ignoreFailures.set(false)
}
configure<com.mikepenz.aboutlibraries.plugin.AboutLibrariesExtension> {
// Remove the "generated" timestamp to allow for reproducible builds
excludeFields = arrayOf("generated")
duplicationMode = DuplicateMode.MERGE
}
}
allprojects {
tasks.withType<Test>().configureEach {
testLogging {
events = setOf(
TestLogEvent.PASSED,
TestLogEvent.FAILED,
TestLogEvent.SKIPPED,
TestLogEvent.STANDARD_OUT,
TestLogEvent.STANDARD_ERROR
)
exceptionFormat = TestExceptionFormat.FULL
showExceptions = true
showCauses = true
showStackTraces = true
}
ignoreFailures = true
}
}