-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
51 lines (41 loc) · 1011 Bytes
/
build.gradle.kts
File metadata and controls
51 lines (41 loc) · 1011 Bytes
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
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
plugins {
id("org.jetbrains.kotlin.jvm") version "1.9.23"
id("com.adarshr.test-logger") version "3.2.0"
id("com.diffplug.spotless") version "6.18.0"
}
repositories {
mavenCentral()
maven("https://plugins.gradle.org/m2/")
}
dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib")
testImplementation("org.junit.jupiter:junit-jupiter:5.9.3")
testImplementation("org.amshove.kluent:kluent:1.73")
}
sourceSets {
test {
java {
srcDirs.add(File("src/test"))
}
}
}
tasks.test {
useJUnitPlatform()
testLogging {
events("failed")
// log full stacktrace of failed test (assertion library descriptive error)
exceptionFormat = TestExceptionFormat.FULL
}
}
kotlin {
jvmToolchain(17)
}
spotless {
kotlin {
target("test/com/igorwojda/**/*.kt")
ktlint()
indentWithSpaces()
endWithNewline()
}
}