Skip to content

Commit

Permalink
Use sbt-no-publish (#11)
Browse files Browse the repository at this point in the history
Use sbt-no-publish
  • Loading branch information
ChristopherDavenport authored Sep 23, 2019
2 parents 97c8842 + f32b708 commit 8c8573a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 14 deletions.
20 changes: 6 additions & 14 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -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"))
Expand All @@ -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"
Expand Down Expand Up @@ -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 := {
<developers>
{for ((username, name) <- contributors) yield
Expand Down Expand Up @@ -118,12 +118,4 @@ lazy val micrositeSettings = {
)
}

lazy val skipOnPublishSettings = Seq(
skip in publish := true,
publish := (()),
publishLocal := (()),
publishArtifact := false,
publishTo := None
)


1 change: 1 addition & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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")

0 comments on commit 8c8573a

Please sign in to comment.