Skip to content
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

Deprecate sonatypeRepo, add sonatypeOssRepos to Resolver #393

Merged
merged 3 commits into from
May 7, 2022

Conversation

armanbilge
Copy link
Contributor

Riffing on #392 (comment).

Since sonatype has indicated they may/will add additional hosts, this seems like the most sensible way forward.

we can always cap subscribership on https://s01.oss.sonatype.org at a level that ensures peak performance and spin up yet another new host to handle future load.

https://central.sonatype.org/news/20210223_new-users-on-s01/#why-are-we-doing-this

@armanbilge armanbilge force-pushed the feature/sonatypeRepos branch from dcb7b1a to c17309a Compare January 16, 2022 21:44
@armanbilge armanbilge changed the title Deprecate sonatypeRepo, add sonatypeRepos to Resolver Deprecate sonatypeRepo, add sonatypeOssRepos to Resolver Jan 31, 2022
@armanbilge
Copy link
Contributor Author

armanbilge commented May 2, 2022

@eed3si9n do you think this one might land in sbt 1.7.0? org.typelevel, org.http4s, and org.tpolecat have migrated to s01 so there is a real need for this. Thanks! :)

@eed3si9n eed3si9n merged commit e15f0c1 into sbt:develop May 7, 2022
@eed3si9n
Copy link
Member

eed3si9n commented May 7, 2022

@armanbilge yea. 🚢 it.

tanishiking added a commit to tanishiking/metals that referenced this pull request Jul 20, 2022
After updating sbt to 1.7.0, we started to get the following warnings
on startup of sbt.

```
/Users/tanishiking/src/github.com/tanishiking/metals/build.sbt:57: warning: method sonatypeRepo in class ResolverFunctions is deprecated (since 1.7.0): Use sonatypeOssRepos instead
    resolvers += Resolver.sonatypeRepo("public"),
                          ^
/Users/tanishiking/src/github.com/tanishiking/metals/build.sbt:58: warning: method sonatypeRepo in class ResolverFunctions is deprecated (since 1.7.0): Use sonatypeOssRepos instead
    resolvers += Resolver.sonatypeRepo("snapshot"),
```                          ^

As the original PR to sbt/librarymanagement says, `sonatyOssRepos` add
`https://s01.oss.sonatype.org` in addition to
`https://oss.sonatype.org`.
sbt/librarymanagement#393

for more information: https://central.sonatype.org/news/20210223_new-users-on-s01/
tanishiking added a commit to scalameta/metals that referenced this pull request Jul 20, 2022
After updating sbt to 1.7.0, we started to get the following warnings
on startup of sbt.

```
/Users/tanishiking/src/github.com/tanishiking/metals/build.sbt:57: warning: method sonatypeRepo in class ResolverFunctions is deprecated (since 1.7.0): Use sonatypeOssRepos instead
    resolvers += Resolver.sonatypeRepo("public"),
                          ^
/Users/tanishiking/src/github.com/tanishiking/metals/build.sbt:58: warning: method sonatypeRepo in class ResolverFunctions is deprecated (since 1.7.0): Use sonatypeOssRepos instead
    resolvers += Resolver.sonatypeRepo("snapshot"),
```                          ^

As the original PR to sbt/librarymanagement says, `sonatyOssRepos` add
`https://s01.oss.sonatype.org` in addition to
`https://oss.sonatype.org`.
sbt/librarymanagement#393

for more information: https://central.sonatype.org/news/20210223_new-users-on-s01/
rtyley added a commit to guardian/frontend that referenced this pull request Dec 21, 2022
In February 2021 Sonatype started spreading its OSS Maven artifact
hosting across 2 repository hosts, so we need to use the plural
`sonatypeOssRepos` (introduced with sbt/librarymanagement#393)
rather than the deprecated singular `sonatypeRepo`.

https://central.sonatype.org/news/20210223_new-users-on-s01/

I managed to miss this when I was doing #25781,
tho' I caught it elsewhere! #25781 (comment)
emdash-ie added a commit to guardian/support-frontend that referenced this pull request May 19, 2023
The latter [has been
deprecated](sbt/librarymanagement#393). I don’t
fully understand why, but the new function uses both old and new
sonatype repos somehow.
emdash-ie added a commit to guardian/support-frontend that referenced this pull request May 19, 2023
The latter [has been
deprecated](sbt/librarymanagement#393). I don’t
fully understand why, but the new function uses both old and new
sonatype repos somehow.
emdash-ie added a commit to guardian/support-frontend that referenced this pull request May 19, 2023
The latter [has been
deprecated](sbt/librarymanagement#393). I don’t
fully understand why, but the new function uses both old and new
sonatype repos somehow.
emdash-ie added a commit to guardian/support-frontend that referenced this pull request May 19, 2023
The latter [has been
deprecated](sbt/librarymanagement#393). I don’t
fully understand why, but the new function uses both old and new
sonatype repos somehow.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants