Skip to content

Commit

Permalink
allow test dependencies to be disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
harrah committed Jul 18, 2013
1 parent 1a14b2b commit 1dc62c3
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions project/SBinaryProject.scala
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,17 @@ object SBinaryProject extends Build
lazy val commonSettings: Seq[Setting[_]] = Seq(
organization := "org.scala-tools.sbinary",
version := "0.4.2",
scalaVersion := "2.10.2"
scalaVersion := "2.10.2",
includeTestDependencies := true
)

lazy val scalaCheck = libraryDependencies += "org.scalacheck" %% "scalacheck" % "1.10.0" % "test"
lazy val includeTestDependencies = SettingKey[Boolean]("include-test-dependencies")
lazy val scalaCheck = libraryDependencies <++= includeTestDependencies( incl =>
if(incl)
List("org.scalacheck" %% "scalacheck" % "1.10.0" % "test")
else
Nil
)
lazy val coreSettings = commonSettings ++ template ++ Seq(
name := "SBinary",
scalaCheck,
Expand Down

0 comments on commit 1dc62c3

Please sign in to comment.