Support for new shard of oss.sonatype - s01.oss.sonatype.org #1225
-
Hi, According to https://central.sonatype.org/articles/2021/Feb/23/new-users-on-s01osssonatypeorg/ new users are given access to s01.oss.sonatype.org and have to perform publishing through this server. This issue emerged also on sbt-sonatype repository: xerial/sbt-sonatype#214 I think the solution presented by @steinybot in xerial/sbt-sonatype#215 is quite good. I will be happy to contribute that change, but before jumping into the code I would like to hear your opinion. Cheers, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
The |
Beta Was this translation helpful? Give feedback.
-
Hi, thanks for the tip. It indeed worked. For any future readers here is what I did:
Unfortunately, this configuration isn't being picked up when using publishAll syntax and has to be duplicated:
Is there any way to workaround that? |
Beta Was this translation helpful? Give feedback.
The
mill.scalalib.publish.SonatypePublisher
already supports parametrized repository urls. The default urls are defined inmill.scalalib.PushlishModule.sonatypeUri
andmill.scalalib.PushlishModule.sonatypeSnapshotUri
, and can be overridden in your module.