Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Support for new shard of oss.sonatype - s01.oss.sonatype.org #1205

Closed
ghostbuster91 opened this issue Mar 10, 2021 · 2 comments
Closed

Support for new shard of oss.sonatype - s01.oss.sonatype.org #1205

ghostbuster91 opened this issue Mar 10, 2021 · 2 comments

Comments

@ghostbuster91
Copy link

ghostbuster91 commented Mar 10, 2021

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,
Kasper

@lefou
Copy link
Member

lefou commented Mar 10, 2021

The mill.scalalib.publish.SonatypePublisher already supports parametrized repository urls. The default urls are defined in mill.scalalib.PushlishModule.sonatypeUri and mill.scalalib.PushlishModule.sonatypeSnapshotUri, and can be overridden in your module.

@lefou lefou closed this as completed Mar 13, 2021
@ghostbuster91
Copy link
Author

Hi, thanks for the tip. It indeed worked. For any future readers here is what I did:

trait MyPublishModule extends PublishModule {
  def sonatypeUri: String = "https://s01.oss.sonatype.org/service/local"

  def sonatypeSnapshotUri: String =
    "https://s01.oss.sonatype.org/content/repositories/snapshots"
}

Unfortunately, this configuration isn't being picked up when using publishAll syntax and has to be duplicated:

./mill -i mill.scalalib.PublishModule/publishAll --publishArtifacts __.publishArtifacts --sonatypeUri "https://s01.oss.sonatype.org/service/local" 

Is there any way to workaround that?

@com-lihaoyi com-lihaoyi locked and limited conversation to collaborators Mar 20, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants