Gradle dependency in a different folder

common-library

-build.gradle middle-tier-library

-build.gradle ui-tier-library

-build.gradle

I would like to build these independantly of one another but have the dependent libraries built as well. Is there any solution to this?

When you say “build independently”, what do you mean?

Are these projects always in this fixed layout? i.e. are they part of the same source tree?