-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PublishException: Cannot publish module metadata where component artifacts are modified. #301
Comments
I think I found a fix. I added this to my multiplatform project’s build.
|
Thanks for all the details. Another workaround seems to be wrapping the
I need to look at it a bit more closely but I think that this old workaround might be the issue: https://github.com/vanniktech/gradle-maven-publish-plugin/blob/master/plugin/src/main/kotlin/com/vanniktech/maven/publish/Platform.kt#L146-L152 It's adding an empty sources jar to the If my assumption is correct we can simply remove the workaround for the next release Kotlin 1.4.30 has been out for quite some time so I think it's reasonable to require at least that version. |
Thanks for the update. Looking forward to the fix; waiting for 1.4.30 to be ubiquitous sounds like a good plan. |
Hi! I’m attempting to adopt the new base plugin for Wire. It’s a Kotlin Multiplatform project with a Gradle plugin, so it exercises lots of stuff!
Unfortunately publishing fails in this task:
The failure exception is:
It’s the main
jar
binary that’s failing to publish:The available artifacts are
sources
andjavadoc
:I can reproduce by checking out the PR’s branch and running this:
I’m trying to figure out what the heck is going on and what I should change to fix it. I’ll update this issue if I find anything.
The text was updated successfully, but these errors were encountered: