Skip to content

Commit 58f9578

Browse files
authored
Merge pull request #539 from typelevel/pr/sonatype-host-docs
Make `s01.oss.sonatype.org` the default host
2 parents 8912ce0 + c830dfd commit 58f9578

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

docs/customization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Instead of using the super-plugins, for finer-grained control you can always add
2727
### sbt-typelevel-sonatype
2828
- `TypelevelSonatypePlugin`: Sets up publishing to Sonatype/Maven.
2929
- `tlRelease` (command): check binary-compatibility and `+publish` to Sonatype
30-
- `tlSonatypeUseLegacyHost` (setting): publish to `oss.sonatype.org` instead of `s01.oss.sonatype.org` (default: true)
30+
- `tlSonatypeUseLegacyHost` (setting): publish to `oss.sonatype.org` instead of `s01.oss.sonatype.org` (default: false)
3131

3232
### sbt-typelevel-settings
3333
- `TypelevelSettingsPlugin`: Good and/or opinionated defaults for scalac settings etc., inspired by sbt-tpolecat.

docs/faq.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,12 @@ val root = tlCrossRootProject
8787
.aggregate(core, io, node, scodec, protocols, reactiveStreams, benchmark)
8888
```
8989

90-
## How do I publish to `s01.oss.sonatype.org`?
90+
## How do I publish to `oss.sonatype.org` instead of `s01.oss.sonatype.org`?
91+
92+
Note that `oss.sonatype.org` is the legacy host and there is an [open invitation to migrate to the new host](https://central.sonatype.org/news/20210223_new-users-on-s01/#why-are-we-doing-this).
93+
9194
```scala
92-
ThisBuild / tlSonatypeUseLegacyHost := false
95+
ThisBuild / tlSonatypeUseLegacyHost := true
9396
```
9497

9598
## How do I publish a website like this one?

docs/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ ThisBuild / developers := List(
7878
tlGitHubDev("armanbilge", "Arman Bilge")
7979
)
8080

81-
// true by default, set to false to publish to s01.oss.sonatype.org
82-
ThisBuild / tlSonatypeUseLegacyHost := true
81+
// false by default, set to true to publish to oss.sonatype.org
82+
ThisBuild / tlSonatypeUseLegacyHost := false
8383

8484
val Scala213 = "2.13.8"
8585
ThisBuild / crossScalaVersions := Seq(Scala213, "3.1.1")

sonatype/src/main/scala/org/typelevel/sbt/TypelevelSonatypePlugin.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ object TypelevelSonatypePlugin extends AutoPlugin {
3232

3333
object autoImport {
3434
lazy val tlSonatypeUseLegacyHost =
35-
settingKey[Boolean]("Publish to oss.sonatype.org instead of s01 (default: true)")
35+
settingKey[Boolean]("Publish to oss.sonatype.org instead of s01 (default: false)")
3636
}
3737

3838
import autoImport._

0 commit comments

Comments
 (0)