Build subproject and dependent subprojects

13 views
Skip to first unread message

Lutz Hühnken

unread,
Feb 26, 2017, 1:59:32 PM2/26/17
to simple-build-tool
Hi,

I didn't get an answer for my StackOverflow question http://stackoverflow.com/questions/42390825/build-subproject-and-dependent-subprojects so far, so I'll cross post it here in hope for some good advice:

Assume I have a multi-project build with the following dependencies:

Projekt A
Projekt B depends on A
Project C
Project D depends on C

Now I have a change in project C. When I compile/test in sub-project C, I want the commands to be automatically applied to D subsequently (because D relies on C and I may have broken an API), but not to A and B.

Is there a way in sbt to say "compile this sub-project and all projects that depend on it"?

This would be equivalent to buildDependents in Gradle, or --alsoMakeDependents in Maven, I believe.

If it doesn't exist yet, helpful hints on how to implement such a task are also most welcome.

Thanks,
Lutz

Reply all
Reply to author
Forward
0 new messages