I am trying to setup a multi-project that includes a sub-project that does an import of a class that is defined in a Dependencies.scala file in its project directory. When I run sbt on the sub-project everything is fine but when I run sbt on the root project I get an error stating that Dependencies is not found. Here is my root build.sbt:
name := "sbtTest"
organization := "com.test"
version := "0.1"
lazy val foo = project
Here is foo's build.sbt:
import Dependencies._
name := "foo"
version := "0.2"
scalaVersion := "2.10.6"
Dependencies.scala is in foo/projects and here is the exact error I get:
/Users/xyz/git/sbtTest/foo/build.sbt:1: error: not found: object Dependencies
import Dependencies._
^
[error] Type error in expression
Has anyone run into this problem?