Skip to content

Commit

Permalink
Use preferred no publish setting for sbt
Browse files Browse the repository at this point in the history
Seems that since 1.0 of sbt, the preferred "do not publish" setting
is `skip in publish := true`. Update the build to batch this config
and also add the missing sbt-sonatype plugin.
  • Loading branch information
gpampara committed Feb 11, 2018
1 parent bc824ee commit 460d89a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,7 @@ lazy val commonSettings = Seq(
)

lazy val noPublishSettings = Seq(
publish := {},
publishLocal := {},
publishArtifact := false
skip in publish := true
)

lazy val publishSettings = Seq(
Expand Down
1 change: 1 addition & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
addSbtPlugin("com.typesafe.sbt" % "sbt-git" % "0.9.3")
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.0")
addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.7")
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "2.2")

addSbtPlugin("com.eed3si9n" % "sbt-unidoc" % "0.4.1")
addSbtPlugin("org.wartremover" % "sbt-wartremover" % "2.2.1")
Expand Down

0 comments on commit 460d89a

Please sign in to comment.