scala - Relative module references -
i have multimodule sbt (0.13.2) project
foo - foo-api - foo-web - ... foo , each subdirectory has build.sbt.
toplevel file aggregator:
lazy val fooapi = project("foo-api", file("foo-api")) lazy val fooweb = project("foo-web", file("foo-web")).dependson(fooapi) // ... lazy val foo = project("foo", file(".")). aggregate(fooapi, fooweb, ...) now absolutely need (not choice) able compile foo-web separately inside foo-web subdirectory , should still depend on foo-api.
i endend adding following fragment foo-web/build.sbt:
lazy val fooweb = project(id = "foo-web", base = file(".")) .in(file(".")) .dependson(project("foo-api", file("../foo-api")) which works cd $root/foo-web && play compile breaks cd $root && play compile since relative paths relative execution directory.
how can reference project using relative path works regardless of directory sbt command executed in ?
Comments
Post a Comment