Closed stephanepechard closed 2 years ago
If it's a publishing issue, maybe try using the standard maven-publish
instead of daxium-maven-publish
and see if it helps. I've never heard of the daxium plugin and have no idea if it might be doing something weird.
Otherwise, I'd need to hear a little more. What Kotlin version are you using? Do you have hmpp enabled? If you have a complete demo project that reproduces the error it might help.
It's not a publishing issue, I have the same result without the maven plugin and using the assemble
task. Sorry, my exemple is not very minimal.
I use Kotlin 1.6.21, so hmpp is enabled. I will try to reduce my exemple with the same error as much as possible.
Thanks for your help.
Here is a small project, in which I reproduce the same error with the assemble
task: test-kmp.zip
Thanks for your help
It looks like the culprit iskotlin.mpp.enableCompatibilityMetadataVariant=true
in your gradle.properties
. That was previously enabled by default and no longer is as of Kotlin 1.6.20, so I'm guessing what's happening is that your project has trouble consuming a library that doesn't also have it. But you almost certainly don't need it so I'd recommend just removing that property. If you have a reason you actually do need it, let me know and I'll consider publishing an update with it enabled.
You're right, removing this option fixes it! Thanks a lot for your time.
Hi, Thanks for this library, which is very useful to all KMP users.
Since version 0.9, I have some difficulties building my app though. I get the following (quite verbose) error for each :
I tried many configuration change to make it work, without success. It was working fine with version 0.8.1. To be more specific, I previously had the same error with my iOS build (through the
assembleXCFramework
task) and I fixed it by adding theiosX64()
target to the gradle file. But now, I have the error by running thepublishToMavenLocal
task, so the Android/JVM part. Initially, I only had theandroid()
target and I tried to add thejvm()
with no luck.My
build.gradle.kts
is the following:Do you have an idea on how to fix this? Thanks a lot!