Reputation: 15985
I have the following project setup:
Base/
build.sbt
src/
Main/
build.sbt
src/
Where Base
and Main
are two projects. I would like Main
to have the classes of Base
on the classpath of Main
. If possible, I would like to keep the builds separate. How can I do this?
Thanks!
Upvotes: 4
Views: 1372
Reputation: 9734
You can try Multi-Project build, maybe it will be best in you case: http://www.scala-sbt.org/0.13.5/docs/Getting-Started/Multi-Project.html
However if this two projects are completely separate sbt supports source dependencies, it definitely works with github and I think should work with file dependencies as well
lazy val Main = Project("Main", file("."), settings = ...) dependsOn(baseDep)
lazy val baseDep = uri("file:///path/to/base/project")
Upvotes: 3