I'm trying to write a concise multi project Build.sbt, so I tried to put all library dependencies in root project and then make others depends on it. My Build.sbt looks like the following:
object KataBuild extends Build { lazy val fizzBuzz = Project( id = "fizzBuzz", base = file("fizzBuzz"), settings = Project.defaultSettings ++ Seq( name := "fizzBuzz", version := "1.0", scalaVersion := "2.10.3" ) ) lazy val kata = Project( id = "scala-kata", base = file("."), settings = Project.defaultSettings ++ Seq( name := "scala-kata", version := "1.0", scalaVersion := "2.10.3", libraryDependencies ++= Seq( "org.scalatest" %% "scalatest" % "2.1.0" % "test" ) ) ) aggregate(fizzBuzz) fizzBuzz dependsOn(kata) } But running test from the main project (scala-kata) fails to build test for fizzBuzz. What am I missing?