I have two projects, where Main depends on Dependency.
By default, Dependency compiles just fine, but Main fails because it doesn’t know about Dependency’s source.
One solution that I came up with was to simply add a symbolic link in Main’s src directory pointing to Dependency’s source, but I feel like there must be a better way in SBT.
Is there a simple way to tell SBT about other source directories?
1) Easiest and idiomatic:
Declare dependency in
Build.scala2) Not so cool, but you can specify where sbt will look at for sources.