blob: 04ea274f6eee79ad0161187b0e17ce8d49e6cb23 (
plain)
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
|
import org.gradle.api.tasks.testing.logging.TestLogEvent
plugins {
val kotlinVersion = "1.7.0"
kotlin("js") version kotlinVersion apply false
kotlin("jvm") version kotlinVersion apply false
kotlin("multiplatform") version kotlinVersion apply false
kotlin("plugin.spring") version kotlinVersion apply false
kotlin("plugin.serialization") version kotlinVersion apply false
}
allprojects {
repositories {
mavenCentral()
}
}
subprojects {
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> { // JVM only
kotlinOptions.jvmTarget = "17"
}
tasks.withType<org.jetbrains.kotlin.gradle.dsl.KotlinCompile<*>> {
kotlinOptions.allWarningsAsErrors = true
}
tasks.withType<AbstractTestTask> {
testLogging {
events(TestLogEvent.FAILED, TestLogEvent.STANDARD_ERROR)
exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
showStackTraces = true
}
}
}
|