I have the following setup for a Scala application and a shared core library: root
-> /ApplicationA -> /project -> /build.sbt -> /CoreLibrary -> /project -> /build.sbt
I want to add a link from the ApplicationA link in the CoreLibrary to the Eclipse project so that every time the CoreLibrary changes ApplicationA, it is also created. I tried the following build.Scala content for ApplicationA:
val core = Project( id = "platform-core", base = file("../CoreLibrary")) val main = Project(id = "application, base = file(".")).dependsOn(core)
However, when compiling ApplicationA SBT complains that the dependency can only be a subdirectory !!:
java.lang.AssertionError: assertion failed: Directory C:\git\CoreLibrary is not contained in build root C:\git\ApplicationA
It seems quite simple, what is the right way to be addicted to this project?
scala sbt
Diego Jul 25 2018-12-25T00: 00Z
source share