not sure how to get kotest installed ```──────────...
# kotest
r
not sure how to get kotest installed
Copy code
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
   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   │  }
a
Gradle has two ways of writing scripts, the Kotlin DSL (build.gradle.kts files) or the Groovy DSL (build.gradle files)
testImplementation '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")