Skip to content

Commit ff0ba77

Browse files
authored
Merge pull request #241 from kiendang/patch-1
2 parents b9650ae + a53bf0d commit ff0ba77

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

readme.md

+21-1
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,13 @@ artifacts with
402402
resolvers += Resolver.sonatypeRepo("public")
403403
```
404404

405+
Use this instead if your Sonatype account was created after February 2021
406+
407+
```scala
408+
resolvers +=
409+
"Sonatype OSS Releases" at "https://s01.oss.sonatype.org/content/repositories/releases"
410+
```
411+
405412
(optional) Use the
406413
[coursier](https://github.com/coursier/coursier/#command-line) command line
407414
interface to check if a release was successful without opening sbt
@@ -410,6 +417,8 @@ interface to check if a release was successful without opening sbt
410417
coursier fetch com.github.sbt:scalafmt-cli_2.12:1.5.0 -r sonatype:public
411418
```
412419

420+
Use `-r https://s01.oss.sonatype.org/content/repositories/releases` instead if your Sonatype account was created after February 2021.
421+
413422
### How do I depend on the SNAPSHOT releases?
414423

415424
Add the following setting
@@ -418,12 +427,23 @@ Add the following setting
418427
resolvers += Resolver.sonatypeRepo("snapshots")
419428
```
420429

430+
or
431+
432+
```scala
433+
resolvers +=
434+
"Sonatype OSS Snapshots" at "https://s01.oss.sonatype.org/content/repositories/snapshots"
435+
```
436+
437+
if your Sonatype account was created after February 2021.
438+
421439
(optional) With coursier you can do the same thing with `-r sonatype:snapshots`
422440

423441
```bash
424442
coursier fetch com.github.sbt:scalafmt-cli_2.12:1.5.0-SNAPSHOT -r sonatype:snapshots
425443
```
426444

445+
Use `-r https://s01.oss.sonatype.org/content/repositories/snapshots` instead if your Sonatype account was created after February 2021.
446+
427447
### What about other CIs environments than Travis?
428448

429449
- This project uses a github workflow,
@@ -475,7 +495,7 @@ characters as documented on
475495
Make sure to upgrade to the latest sbt-ci-release, which could fix this error.
476496
This failure can happen in case you push a git tag immediately after merging a
477497
branch into master. A manual workaround is to log into
478-
https://s01.oss.sonatype.org/ (or https://s01.oss.sonatype.org/ if your Sonatype
498+
https://s01.oss.sonatype.org/ (or https://oss.sonatype.org/ if your Sonatype
479499
account was created before February 2021) and drop the failing repository from
480500
the web UI. Alternatively, you can run `sonatypeDrop <staging-repo-id>` from the
481501
sbt shell instead of using the web UI.

0 commit comments

Comments
 (0)