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" ::