https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
r

Rob Murdock

11/02/2023, 12:49 PM
I'm running into a strange issue with the 1.9.20 upgrade where my "*compileCommonMainKotlinMetadata"* task is failing due to not finding the kotlin standard library "map" collection extension. Has anyone else run into this or have a solution?
naturally, I have code in my commonMain that uses the map collection extension to, erm, map things to other things.
i

ilya.gorbunov

11/03/2023, 3:12 AM
Just a guess, do you use
mavenLocal
repository in build scripts for getting dependencies?
r

Rob Murdock

11/03/2023, 3:19 AM
I don’t believe so, but I am composing my build with multiple projects so I can build convention plugins. Would have have a similar effect?
I seem to keep alternating between having this issue and having a different issue with kotlin serialization and common code generating serializers for JavaScript. I’m guessing one of the issues is library misalignment, but that always leaves me with the other issue, which is similarly tough to resolve
i

ilya.gorbunov

11/03/2023, 3:27 AM
The version misalignment can also be the case. You can check which dependency versions are resolved in your project using Gradle build scan or by running
dependencies
Gradle task in the affected project.
The relevant dependency configurations for compileCommonMainKotlinMetadata would be
metadataCommonMainCompileClasspath
or
metadataCompileClasspath
👍 1
r

Rob Murdock

11/03/2023, 12:09 PM
I'll take some more looking at it today
2 Views