Closed mprins closed 9 months ago
Somehow you're getting version 1.6.21 of the Kotlin stdlib instead of 1.9.21 which is what 5.0 alpha 12 depends on. Do you have an explicit dependency on the stdlib somewhere? Or are you letting it come in transitively?
Yes I just noticed (wake up Mark!); it's the version that is specified in the spring-boot-dependencies BOM; I've added an override, so now I'm at 1.9.21 and that fixes the problem. Thanks for looking into this.
...
[INFO] +- com.squareup.okhttp3:mockwebserver3:jar:5.0.0-alpha.12:test
[INFO] | +- com.squareup.okhttp3:okhttp-jvm:jar:5.0.0-alpha.12:test
[INFO] | | \- com.squareup.okio:okio-jvm:jar:3.7.0:test
[INFO] | \- org.jetbrains.kotlin:kotlin-stdlib:jar:1.9.21:test
[INFO] | \- org.jetbrains:annotations:jar:13.0:test
[INFO] +- com.squareup.okhttp3:mockwebserver3-junit5:jar:5.0.0-alpha.12:test
...
@JakeWharton, are there any requirements documented for 5.x regarding Java version and Kotlin version?
Asking because I still have to use Java 11 and Kotlin 1.7 in a project and get the error META-INF/okhttp.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.
After upgrading from 5.0.0-alpha.11 to 5.0.0-alpha.12 (for mockwebserver3 and mockwebserver3-junit5) in https://github.com/B3Partners/tailormap-api/pull/669 I'm seeing the below stacktraces:
and
As far as I understand Kotlin Enum,Entries should be in the kotlin-stdlib jar which is part of the dependency tree (see below). Any hints to resolve this would be welcome.