Skip to content

Commit

Permalink
Fix settings for projects that do not need to be published (#1083)
Browse files Browse the repository at this point in the history
The one setting to rule them all: `publish / skip := true`
  • Loading branch information
2m authored and ennru committed Jul 4, 2018
1 parent bd5e360 commit f8290af
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
9 changes: 6 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ lazy val orientdb = alpakkaProject("orientdb",
fork in Test := true,
parallelExecution in Test := false)

lazy val reference = alpakkaProject("reference", "reference", Dependencies.Reference).enablePlugins(NoPublish)
lazy val reference = alpakkaProject("reference", "reference", Dependencies.Reference, publish / skip := true)
.disablePlugins(BintrayPlugin)

lazy val s3 = alpakkaProject("s3", "aws.s3", Dependencies.S3)

Expand Down Expand Up @@ -184,10 +185,11 @@ lazy val unixdomainsocket = alpakkaProject("unix-domain-socket", "unixdomainsock
lazy val xml = alpakkaProject("xml", "xml", Dependencies.Xml)

lazy val docs = project
.enablePlugins(ParadoxPlugin, NoPublish)
.enablePlugins(ParadoxPlugin)
.disablePlugins(BintrayPlugin, MimaPlugin)
.settings(
name := "Alpakka",
publish / skip := true,
paradoxTheme := Some(builtinParadoxTheme("generic")),
paradoxProperties ++= Map(
"version" -> version.value,
Expand Down Expand Up @@ -219,13 +221,14 @@ lazy val docs = project
)

lazy val `doc-examples` = project
.enablePlugins(NoPublish, AutomateHeaderPlugin)
.enablePlugins(AutomateHeaderPlugin)
.disablePlugins(BintrayPlugin, MimaPlugin)
.dependsOn(
modules.map(p => classpathDependency(p)): _*
)
.settings(
name := s"akka-stream-alpakka-doc-examples",
publish / skip := true,
Dependencies.`Doc-examples`
)

Expand Down
13 changes: 0 additions & 13 deletions project/Publish.scala
Original file line number Diff line number Diff line change
@@ -1,18 +1,5 @@
import sbt._, Keys._

/**
* For projects that are not to be published.
*/
object NoPublish extends AutoPlugin {
override def requires = plugins.JvmPlugin

override def projectSettings = Seq(
publishArtifact := false,
publish := {},
publishLocal := {}
)
}

object Publish extends AutoPlugin {
import bintray.BintrayPlugin
import bintray.BintrayPlugin.autoImport._
Expand Down

0 comments on commit f8290af

Please sign in to comment.