From 4803fb652a607ce9a1e2d8641eb266aa58885eac Mon Sep 17 00:00:00 2001 From: Michael Pollmeier Date: Thu, 8 Jul 2021 19:29:37 +1200 Subject: [PATCH] upgrade sbt-sonatype to 3.9.7 to support s01.oss.sonatype.org (#12) * upgrade sbt-sonatype to 3.9.7 to support s01.oss.sonatype.org re https://github.com/xerial/sbt-sonatype/issues/214 * add legacy host warning re s01.oss.sonatype.org * only one extra setting needed, apparently --- build.sbt | 2 +- project/build.properties | 2 +- readme.md | 9 +++++++++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/build.sbt b/build.sbt index 7bc130b..3b84182 100644 --- a/build.sbt +++ b/build.sbt @@ -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( diff --git a/project/build.properties b/project/build.properties index 947bdd3..9edb75b 100644 --- a/project/build.properties +++ b/project/build.properties @@ -1 +1 @@ -sbt.version=1.4.3 +sbt.version=1.5.4 diff --git a/readme.md b/readme.md index 92297cd..56720ab 100644 --- a/readme.md +++ b/readme.md @@ -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`