From f32b7082f1065740f140864e8460f046e0453246 Mon Sep 17 00:00:00 2001 From: Chris Davenport Date: Mon, 23 Sep 2019 09:39:11 -0700 Subject: [PATCH] Use sbt-no-publish --- build.sbt | 20 ++++++-------------- project/plugins.sbt | 1 + 2 files changed, 7 insertions(+), 14 deletions(-) diff --git a/build.sbt b/build.sbt index 5089e93..e334fe9 100644 --- a/build.sbt +++ b/build.sbt @@ -1,6 +1,7 @@ lazy val `sbt-mima-version-check` = project.in(file(".")) .disablePlugins(MimaPlugin) - .settings(commonSettings, releaseSettings, skipOnPublishSettings) + .enablePlugins(NoPublishPlugin) + .settings(commonSettings, releaseSettings) .aggregate(core, docs) lazy val core = project.in(file("core")) @@ -23,10 +24,11 @@ lazy val core = project.in(file("core")) lazy val docs = project.in(file("docs")) .disablePlugins(MimaPlugin) - .settings(commonSettings, skipOnPublishSettings, micrositeSettings) - .dependsOn(core) .enablePlugins(MicrositesPlugin) .enablePlugins(TutPlugin) + .enablePlugins(NoPublishPlugin) + .settings(commonSettings, micrositeSettings) + .dependsOn(core) lazy val contributors = Seq( "ChristopherDavenport" -> "Christopher Davenport" @@ -57,9 +59,7 @@ lazy val releaseSettings = { homepage := Some(url("https://github.com/ChristopherDavenport/sbt-mima-version-check")), licenses += ("MIT", url("http://opensource.org/licenses/MIT")), publishMavenStyle := true, - pomIncludeRepository := { _ => - false - }, + pomIncludeRepository := { _ => false }, pomExtra := { {for ((username, name) <- contributors) yield @@ -118,12 +118,4 @@ lazy val micrositeSettings = { ) } -lazy val skipOnPublishSettings = Seq( - skip in publish := true, - publish := (()), - publishLocal := (()), - publishArtifact := false, - publishTo := None -) - diff --git a/project/plugins.sbt b/project/plugins.sbt index c9c94b4..3b5c062 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -4,6 +4,7 @@ addSbtPlugin("com.47deg" % "sbt-microsites" % "0.9.4") addSbtPlugin("com.typesafe.sbt" % "sbt-ghpages" % "0.6.3") addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.3.2") addSbtPlugin("io.chrisdavenport" % "sbt-mima-version-check" % "0.1.1") +addSbtPlugin("io.chrisdavenport" % "sbt-no-publish" % "0.1.0") // Here For The Free Version Bumps for the Library addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "0.6.1") \ No newline at end of file