Skip to content
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

Incompatibility between Kotlin 1.7.xx and mockk after updating to 1.13.8 #1205

Open
alsoba13 opened this issue Jan 15, 2024 · 0 comments
Open

Comments

@alsoba13
Copy link

Expected Behavior

I have a gradle project with Kotlin 1.7.22 and mockk 1.13.7.

I updated mockk to 1.13.8 and I'd have expected to still have full compatibility with my 1.7.22 kotlin project.

Current Behavior

I get this message on build:

Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1.

Bumping to 1.13.9 doesn't seem to fix it either

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. clone the repo I've prepared for this issue: https://github.com/alsoba13/mockk-1.13.8-kotlin-1.7-issue
  2. run the tests. Check that they work:
./gradlew test
  1. bump mockk to 1.13.8 in line 15 of build.gradle
  2. re-run tests to get this message:
e: [...]/kotlin-stdlib-common.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant