Upgrade to Kotest 6: Unable to load class ‘io.kotest.mpp.ReflectionKt’.

Published on August 26, 2025

This error had me stumped for a bit, and appeared when running the tests in the project. Gradle failed with “Unable to load class ‘io.kotest.mpp.ReflectionKt’.”

The reason is that Kotest has changed the coordinates and versioning of it’s extensions for version 6.+, so if you’re using the Kotest Spring Extension you may have that still versioned as 1.3.0 and with the groupId “io.kotest.extensions”. That than mixes Kotest 5 and Kotest 6 dependencies, causing the error above.

Simply change the coordinates of your Spring extension, and use the same version as all your other Kotest dependencies.

-    testImplementation("io.kotest.extensions:kotest-extensions-spring:1.3.0")
+ testImplementation("io.kotest:kotest-extensions-spring:6.0.1")

More examples:


Upgrade to Kotest 6: Unable to load class ‘io.kotest.mpp.ReflectionKt’. was originally published in The Protean Tester on Medium, where people are continuing the conversation by highlighting and responding to this story.