Ray Rahke
03/13/2024, 6:13 AM───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
1 │ repositories {
2 │ mavenCentral()
3 │ }
4 │ plugins {
5 │ kotlin("jvm") version "1.9.23"
6 │ }
7 │ dependencies {
8 │ testImplementation(kotlin("test"))
9 │ testImplementation 'io.kotest:kotest-runner-junit5:5.8'
10 │ }
11 │ sourceSets {
12 │ test {
13 │ kotlin.srcDirs("test")
14 │ }
15 │ }
16 │
17 │ tasks.withType<Test>().configureEach {
18 │ useJUnitPlatform()
19 │ }
Adam S
03/13/2024, 8:28 AMtestImplementation 'io.kotest:kotest-runner-junit5:5.8'
is the Groovy DSL syntax. You want the Kotlin DSL version: testImplementation("io.kotest:kotest-runner-junit5:5.8")