In SBT, you can use the "~" mark to trigger actions whenever a source file changes. For example,
sbt> ~test
will run the unit tests whenever source changes.
Is there any good way to trigger actions whenever source changes or a local dependency changes? This would be useful when developing two projects simultaneously, where one depends on the other.
I know you can get this behavior by manually specifying a path to a file or the base project, but that's brittle, and SBT already knows where it's getting its local artifacts, so it's something I'd like to avoid.