From d538ba33b7544bf58da6e164ff4f8686d5b8a6ec Mon Sep 17 00:00:00 2001 From: xuwei-k <6b656e6a69@gmail.com> Date: Sun, 21 Jun 2026 18:55:19 +0900 Subject: [PATCH] Fix publish setting --- build.sbt | 15 ++------------- project/plugin.sbt | 1 - 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/build.sbt b/build.sbt index 60067a7..ef211ba 100644 --- a/build.sbt +++ b/build.sbt @@ -1,5 +1,4 @@ import sbtrelease._ -import xerial.sbt.Sonatype._ import ReleaseStateTransformations._ import build._ @@ -34,15 +33,10 @@ releaseProcess := Seq[ReleaseStep]( setNextVersion, commitNextVersion, UpdateReadme.updateReadmeProcess, - releaseStepCommand("sonatypeReleaseAll"), + releaseStepCommand("sonaRelease"), pushChanges ) -credentials ++= PartialFunction.condOpt(sys.env.get("SONATYPE_USER") -> sys.env.get("SONATYPE_PASS")){ - case (Some(user), Some(pass)) => - Credentials("Sonatype Nexus Repository Manager", "oss.sonatype.org", user, pass) -}.toList - organization := "com.github.xuwei-k" homepage := Some(url("https://github.com/msgpack4z")) @@ -78,9 +72,4 @@ pomExtra := description := "msgpack4z" -publishTo := Some( - if (isSnapshot.value) - Opts.resolver.sonatypeSnapshots - else - Opts.resolver.sonatypeStaging -) +publishTo := (if (isSnapshot.value) None else localStaging.value) diff --git a/project/plugin.sbt b/project/plugin.sbt index 72bce7c..494a222 100644 --- a/project/plugin.sbt +++ b/project/plugin.sbt @@ -1,6 +1,5 @@ addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.3.1") addSbtPlugin("com.github.sbt" % "sbt-release" % "1.5.0") -addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.12.0") scalacOptions ++= ( "-deprecation" ::