Skip to content

Commit 01a42ff

Browse files
committed
update readme re sonatype credential host
re #103
1 parent 80d9f6f commit 01a42ff

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

readme.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,19 @@ In your `build.sbt` do *not* define the `version` setting and ensure the followi
6565
- `scmInfo`
6666
- `homepage`
6767
- `publishTo := sonatypePublishToBundle.value`
68+
- `sonatypeCredentialHost` potentially - see next section
6869

6970
Example: https://github.com/mpollmeier/sbt-ci-release-early-usage/blob/master/build.sbt
7071
For a multi-project build, you can define those settings in your root `build.sbt` and prefix them with `ThisBuild/`, e.g. `ThisBuild/publishTo := sonatypePublishToBundle.value`
7172

72-
> [!WARNING]
73-
> By default, sbt-sonatype uses the legacy Sonatype repository `oss.sonatype.org`. If you created yours after February 2021, you probably need to configure the new repository url via `sonatypeCredentialHost := "s01.oss.sonatype.org"`.
73+
### Choosing the correct Sonatype host
74+
Unfortunately there's been a few changes re sonatype hosts, leading to confusion. You will need to configure the `sonatypeCredentialHost` setting according to the sonatype host your account is on. If you're unsure, you'll need to test them individually, but here's a rough guideline:
75+
76+
- `sonatypeCredentialHost := "central.sonatype.com"` - if you are on Sonatype Central
77+
- `sonatypeCredentialHost := "oss.sonatype.org"` - the sonatype legacy OSSRH host
78+
- `sonatypeCredentialHost := "s01.oss.sonatype.org"` - the sonatype legacy OSSRH host, for accounts created after February 2021
79+
80+
> [!NOTE] The legacy OSSRH service will sunset on June 30th, 2025, i.e. you will need to migrate to Sonatype Central after that. See https://central.sonatype.org/publish/publish-guide
7481
7582
### gitignore
7683
`echo '/gnupg-*' >> .gitignore`

0 commit comments

Comments
 (0)