@@ -402,6 +402,13 @@ artifacts with
402
402
resolvers += Resolver.sonatypeRepo("public")
403
403
` ` `
404
404
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
+
405
412
(optional) Use the
406
413
[coursier](https://github.com/coursier/coursier/#command-line) command line
407
414
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
410
417
coursier fetch com.github.sbt:scalafmt-cli_2.12:1.5.0 -r sonatype:public
411
418
` ` `
412
419
420
+ Use `-r https://s01.oss.sonatype.org/content/repositories/releases` instead if your Sonatype account was created after February 2021.
421
+
413
422
# ## How do I depend on the SNAPSHOT releases?
414
423
415
424
Add the following setting
@@ -418,12 +427,23 @@ Add the following setting
418
427
resolvers += Resolver.sonatypeRepo("snapshots")
419
428
` ` `
420
429
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
+
421
439
(optional) With coursier you can do the same thing with `-r sonatype:snapshots`
422
440
423
441
` ` ` bash
424
442
coursier fetch com.github.sbt:scalafmt-cli_2.12:1.5.0-SNAPSHOT -r sonatype:snapshots
425
443
` ` `
426
444
445
+ Use `-r https://s01.oss.sonatype.org/content/repositories/snapshots` instead if your Sonatype account was created after February 2021.
446
+
427
447
# ## What about other CIs environments than Travis?
428
448
429
449
- This project uses a github workflow,
@@ -475,7 +495,7 @@ characters as documented on
475
495
Make sure to upgrade to the latest sbt-ci-release, which could fix this error.
476
496
This failure can happen in case you push a git tag immediately after merging a
477
497
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
479
499
account was created before February 2021) and drop the failing repository from
480
500
the web UI. Alternatively, you can run `sonatypeDrop <staging-repo-id>` from the
481
501
sbt shell instead of using the web UI.
0 commit comments