Skip to content

Commit

Permalink
no-publish settings for root and bin
Browse files Browse the repository at this point in the history
that actually work and dont drop errors in the logs
  • Loading branch information
sullivan- committed Oct 13, 2016
1 parent b57d580 commit 06e235f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions project/LongevityBuild.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import sbt._
import Keys._
import com.typesafe.sbt.pgp.PgpKeys._

trait Deps {

Expand Down Expand Up @@ -112,17 +113,22 @@ trait BuildSettings extends Deps {

)

val noPublishSettings = Defaults.coreDefaultSettings ++ Seq(
packagedArtifacts := Map.empty,
publishLocal := (),
publishSigned := (),
publish := ())

private def gitHash = sys.process.Process("git rev-parse HEAD").lines_!.head

}

object LongevityBuild extends Build with BuildSettings with Deps {

lazy val root = Project(id = "root", base = file("."))
.settings(publish := {})
lazy val root = Project(id = "root", base = file("."), settings = noPublishSettings)
.aggregate(bin, emblem, longevity, longevityMongoDeps, longevityCassandraDeps, longevityDDD)

lazy val bin = Project(id = "bin", base = file("bin")).settings(publish := {})
lazy val bin = Project(id = "bin", base = file("bin"), settings = noPublishSettings)

lazy val longevity = Project(
id = "longevity",
Expand Down

0 comments on commit 06e235f

Please sign in to comment.