https://kotlinlang.org logo
#library-development
Title
# library-development
a

aenri

07/11/2022, 1:45 AM
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

louiscad

07/14/2022, 2:41 PM
Curious. I don't have this problem on Splitties (you can find it on GitHub). What Kotlin version are you using?
a

altavir

07/18/2022, 8:27 AM
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?
10 Views