-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
50 lines (45 loc) · 1.51 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
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
import se.embuc.utils.addColoredSummary
plugins {
kotlin("jvm") version "1.9.21"
id("io.freefair.lombok") version "6.3.0"
}
group = "se.embuc"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
testImplementation("org.jetbrains.kotlin:kotlin-test-junit5")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.10.1")
testImplementation("org.junit.jupiter:junit-jupiter-params:5.10.1")
testImplementation("org.junit.jupiter:junit-jupiter:5.10.0")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.10.1")
testRuntimeOnly("org.junit.platform:junit-platform-launcher:1.10.1")
implementation("org.projectlombok:lombok:1.18.24")
annotationProcessor("org.projectlombok:lombok:1.18.24")
}
apply(from = "test-utils.gradle.kts")
tasks {
test {
useJUnitPlatform()
addColoredSummary()
// Enable detailed test output
testLogging {
events("failed") // Disable default test events
// events("passed", "skipped", "failed") // Log when tests pass, skip, or fail
exceptionFormat = TestExceptionFormat.SHORT // Use SHORT or FULL here
showCauses = true // Display root causes
showExceptions = true // Show exception stack traces
showStandardStreams = true // Show stdout/stderr output of tests
}
}
}
kotlin {
jvmToolchain(17)
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
kotlinOptions {
freeCompilerArgs += "-Xjvm-default=all"
}
}