New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mockk jar 1.12.8 is empty on MavenCentral, Maven does not leverage Kotlin multi platform build #921
Comments
Some context: The MockK JVM library was renamed when MockK was updated to use the new Kotlin Multiplatform plugin in #855. (MockK was, and is, multiplatform - the update just upgraded the from a deprecated Kotlin Multiplatform plugin) Before this change the JVM platform library was simply called I've looked into this further and I think it's quite standard for Kotlin Multiplatform libraries to tell Maven users that they have to explicitly use I agree that this change shouldn't have been in a patch release (although I'm not a strong advocate of semantic versioning), and ideally MockK should have snapshot releases to catch issues sooner #910. Some projects seem to do some manual Maven config to work around this (for example Kotlinx Serialization has some Gradle config, although I don't quite understand it, or its purpose). Possibly MockK can apply such a workaround, although I'm wary of introducing more issues by hacking around, especially since I think the 'best' solution is to
(reminder, I'm a contributor, these are just my thoughts 🙂) |
I agree with your "best" solution @aSemy, i'll get it done today. |
Just released v1.13.1. |
@Raibaz There's a couple of minor mistakes in the release notes, and in the docs :)
|
@aSemy, referring to #868 (#868 (comment)) here is a sample project, which uses
mockk
1.12.8 with Maven and you can immediately see that it does not compile. If you switch tomockk-jvm
it works, but I got that it should work anyway.https://github.com/stefanzilske/mockk-demo
I couldn't yet reproduce the
java.lang.NoSuchMethodError: 'kotlin.reflect.KClass io.mockk.ValueClassSupportKt.boxedClass(kotlin.reflect.KClass)'
that I get in my real project when I switch tomockk-jvm
while havingspringmockk
as well, but I will keep trying.The text was updated successfully, but these errors were encountered: