https://kotlinlang.org logo
#opensource
Title
# opensource
j

Javier

01/29/2021, 9:06 AM
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

mbonnin

01/29/2021, 9:31 AM
I've seen the same in the past. What happens if you close and release both repositories? Do they get merged somehow?
j

Javier

01/29/2021, 9:35 AM
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

mbonnin

01/29/2021, 9:35 AM
Yea, I've always been afraid to do so as well 😅
😂 1
g

gammax

01/29/2021, 10:49 AM
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

Javier

01/29/2021, 12:25 PM
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

basher

01/29/2021, 6:07 PM
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

Javier

01/29/2021, 6:17 PM
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
6 Views