name := "sub-project"
Common.settings
libraryDependencies ++= Common.commonDependencies
lazy val subProject = (project in file("."))
.enablePlugins(PlayJava)
.dependsOn(zeus)
lazy val root = (project in file("../"))
I have also tried to write the Build.scala instead of build.sbt, but no help.
Could somebody please point me to correct documentation? I searched over sbt documentation and internet, all the blogs/articles are talking about defining everything in root/build.sbt but not modularized as suggested in play's link.
Thanks,
Raj.
so in you case the "sub-project" becomes "root" project when you try to start the sbt out of sub dir.The definitions in
.sbtfiles are not visible in other.sbtfiles. In order to share code between.sbtfiles, define one or more Scala files in theproject/directory of the build root.
projects
project sub-project