Skip to content

Commit

Permalink
upgrade sbt-sonatype to 3.9.7 to support s01.oss.sonatype.org (#12)
Browse files Browse the repository at this point in the history
* upgrade sbt-sonatype to 3.9.7 to support s01.oss.sonatype.org

re xerial/sbt-sonatype#214

* add legacy host warning re s01.oss.sonatype.org

* only one extra setting needed, apparently
  • Loading branch information
mpollmeier authored Jul 8, 2021
1 parent f4c9710 commit 4803fb6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ libraryDependencies ++= List(

addSbtPlugin("com.michaelpollmeier" % "sbt-git" % "1.0.1")
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "2.0.1")
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.5")
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.7")

homepage := Some(url("https://github.com/ShiftLeftSecurity/sbt-ci-release-early"))
scmInfo := Some(ScmInfo(
Expand Down
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.4.3
sbt.version=1.5.4
9 changes: 9 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,15 @@ Ensure the following settings *are* defined in your `build.sbt`:
Example: https://github.com/mpollmeier/sbt-ci-release-early-usage/blob/master/build.sbt
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`

> ⚠️ Legacy Host
>
> By default, sbt-sonatype is configured to use the legacy Sonatype repository `oss.sonatype.org`. If you created a new account from February 2021, you need to configure the new repository url. Context: https://github.com/xerial/sbt-sonatype/issues/214
>
> ```scala
> // For all Sonatype accounts created from February 2021
> sonatypeCredentialHost := "s01.oss.sonatype.org"
> ```
### gitignore
`echo '/gnupg-*' >> .gitignore`
Expand Down

0 comments on commit 4803fb6

Please sign in to comment.