sam
02/04/2025, 11:25 AMEmil Kantis
02/04/2025, 1:02 PMsam
02/04/2025, 1:05 PMsam
02/04/2025, 1:11 PMEmil Kantis
02/04/2025, 1:21 PMsam
02/04/2025, 3:55 PMEmil Kantis
02/04/2025, 3:55 PMEmil Kantis
02/04/2025, 9:20 PMEmil Kantis
02/04/2025, 9:21 PMEmil Kantis
02/04/2025, 9:23 PM$> ./gradlew kotest
Calculating task graph as no cached configuration is available for tasks: kotest
Type-safe project accessors is an incubating feature.
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':autoinvoice'.
> Could not create task ':autoinvoice:kotest'.
> org/jetbrains/kotlin/gradle/tasks/KotlinCompile
Emil Kantis
02/04/2025, 9:34 PMbuild.gradle.kts
.
I.e
// foo/build.gradle.kts
plugins {
id("my-kotlin-conventions")
id("io.kotest")
}
I seem to get further after applying the Kotest plugin in the same convention plugin as the Kotlin JVM plugin.sam
02/04/2025, 9:34 PMEmil Kantis
02/04/2025, 9:35 PMEmil Kantis
02/04/2025, 9:37 PMkotest
tasks for projects which don't depend on Kotest runner.
> Task :boneo:vitec:kotest FAILED
Error: Could not find or load main class io.kotest.engine.launcher.MainKt
Caused by: java.lang.ClassNotFoundException: io.kotest.engine.launcher.MainKt
Since I apply it with the convention now, I get kotest in every project, even if I don't have any tests there 🙂 Perhaps it could detect that and skip creating tasksEmil Kantis
02/04/2025, 9:39 PMsam
02/04/2025, 9:50 PMEmil Kantis
02/04/2025, 9:58 PMEmil Kantis
02/04/2025, 9:59 PMsam
02/06/2025, 7:40 PMsam
02/06/2025, 7:40 PMsam
02/06/2025, 7:41 PM