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

louiscad

08/01/2020, 1:49 PM
Hello, I'm encountering this issue when trying to publish the kotlinMultiplatform publication of a library (using Kotlin 1.3.72):
Copy code
Execution failed for task ':modules:collections:allMetadataJar'.
> Cannot expand ZIP '/home/runner/work/Splitties/Splitties/modules/collections/build/classes/kotlin/metadata/nativeMain/collections_nativeMain.klib' as it does not exist.
Here's the Gradle scan: https://gradle.com/s/prbmyqsufsl4y And here's the GitHub Actions run: https://github.com/LouisCAD/Splitties/runs/934757382#step:4:1 What could be the root cause?
r

russhwolf

08/01/2020, 4:04 PM
Does it work if you remove
kotlin.mpp.enableGranularSourceSetsMetadata=true
? The details were different, but I had issues in Multiplatform Settings with the intermediate artifacts that are created when that option is enabled in 1.3.72. I don’t think your publication would be looking for that missing klib with hmpp disabled.
l

louiscad

08/01/2020, 4:38 PM
Oh, I didn't think this could have an impact! I will try without that flag, I'm confident this can solve my issue. Thank you very much!
👍 1
I can confirm it fixed my issue. Now, I wonder if it will work in Kotlin 1.4.0 🤔
3 Views