-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
47 lines (40 loc) · 1.4 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.gradle.api.tasks.testing.logging.TestExceptionFormat
import org.gradle.api.tasks.testing.logging.TestLogEvent
plugins {
// trick: for the same plugin versions in all sub-modules
alias(libs.plugins.androidApplication).apply(false)
alias(libs.plugins.androidLibrary).apply(false)
alias(libs.plugins.kotlinAndroid).apply(false)
alias(libs.plugins.kotlinCocoapods).apply(false)
alias(libs.plugins.kotlinMultiplatform).apply(false)
id("com.diffplug.spotless").version("6.21.0")
}
spotless { kotlinGradle { ktlint() } }
subprojects {
apply(plugin = "com.diffplug.spotless")
spotless {
kotlin {
target("src/**/*.kt")
ktfmt().kotlinlangStyle()
}
kotlinGradle { ktfmt().kotlinlangStyle() }
}
tasks.withType<AbstractTestTask> {
testLogging {
// set options for log level LIFECYCLE
events =
setOf(
TestLogEvent.FAILED,
TestLogEvent.PASSED,
TestLogEvent.SKIPPED,
TestLogEvent.STANDARD_OUT,
)
exceptionFormat = TestExceptionFormat.FULL
showStandardStreams = true
showExceptions = true
showCauses = true
showStackTraces = true
}
}
}
tasks.getByName("clean", Delete::class) { delete(rootProject.layout.buildDirectory) }