christopherdavenport / sbt-no-publish   0.1.0

MIT License Website GitHub

Setting No Publication Settings

Scala versions: 2.12
sbt plugins: 1.x

sbt-no-publish - Setting No Publication Settings Build Status Maven Central Code of Consuct

Quick Start

To use sbt-no-publish in an existing SBT project with version 1.0 or greater, add the following dependencies to your plugins.sbt depending on your needs:

addSbtPlugin("io.chrisdavenport" % "sbt-no-publish" % "<version>")

Example of Use

lazy val root = project.in(file("."))
  .enablePlugins(NoPublishPlugin) // We disable publishing of the root project
  .aggregate(core, site)

lazy val core = project.in(file("core"))
  .settings(commonSettings, releaseSettings)
  .settings(
    name := "project-name"
  )


lazy val site = project.in(file("site"))
  .disablePlugins(MimaPlugin)
  .enablePlugins(NoPublishPlugin) // We disable publishing of the site
  .enablePlugins(MicrositesPlugin)
  .enablePlugins(MdocPlugin)
  .dependsOn(core)