I'm not sure if this goes here, but whenever I try...
# library-development
a
I'm not sure if this goes here, but whenever I try and publish a multiplatform library, gradle fails at the task
:generateMetadataFileForKotlinMultiplatformPublication
with the error
Invalid publication "kotlinMultiplatform"
while using the
maven-publish
plugin. Is this something that there's a fix for or should I be doing something else to publish my library?
l
Curious. I don't have this problem on Splitties (you can find it on GitHub). What Kotlin version are you using?
a
It is possible that you are applying
maven-publish
to the wrong gradle module. Like root module that does not have the multiplatform plugin applied. Can you share the buildscrip?