From 594f783b7faf70cf7703bcb11b1d0654658c6f67 Mon Sep 17 00:00:00 2001 From: Jack Koenig Date: Wed, 2 Dec 2020 17:20:43 -0800 Subject: Restore publish settings to before sbt-ci-release (#1999) sbt-ci-release changes the commands required to publish to Sonatype. While this may be a desirable change at some point, it is inconsistent with other repos. Reverting for the time being.--- build.sbt | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/build.sbt b/build.sbt index d39f99dc..557a6fe4 100644 --- a/build.sbt +++ b/build.sbt @@ -90,7 +90,7 @@ lazy val antlrSettings = Seq( ) lazy val publishSettings = Seq( - // publishMavenStyle and publishTo handled by sbt-ci-release + publishMavenStyle := true, publishArtifact in Test := false, pomIncludeRepository := { x => false }, // Don't add 'scm' elements if we have a git.remoteRepo definition, @@ -114,6 +114,15 @@ lazy val publishSettings = Seq( http://www.eecs.berkeley.edu/~jrb/ , + publishTo := { + val v = version.value + val nexus = "https://oss.sonatype.org/" + if (v.trim.endsWith("SNAPSHOT")) { + Some("snapshots" at nexus + "content/repositories/snapshots") + } else { + Some("releases" at nexus + "service/local/staging/deploy/maven2") + } + } ) -- cgit v1.2.3