I am trying to publish to MavenCentral a Kotlin Mu...
# opensource
j
I am trying to publish to MavenCentral a Kotlin Multiplatform library. When I didn't have windows artifacts there were no problems, but after adding the Windows one I need to use a matrix in GitHub Actions, and this is causing that two repositories are created in Nexus Dashboard.
This problem is not appearing with snapshot releases
m
I've seen the same in the past. What happens if you close and release both repositories? Do they get merged somehow?
j
I didn't try, I saw this problem in the past when Sonatype has having overload but I just drop them and reupload. But I don't know if a released repo in mavenCentral can add artifacts, I thought it can't 🤔
m
Yea, I've always been afraid to do so as well 😅
😂 1
g
I remember adding artifacts to a release in the past (as I had a partial deployment). You have to do it manually through the sonatype UI though
j
Yeah, I just tried and it seems that I can release multiple repos via UI. I was using codearte plugin to close via gradle but it is not possible now but at least it works, thank you 🙂
b
It has always created multiple for me. As long as the artifacts are unique across those, it should be fine. I just release them all
👍 1
j
With
id("de.marcphilipp.nexus-publish")
and without using multiple machines I get only one repo, multiple repos with only one machine was happening to me with
maven-publish