We have a huge legacy codebase with deep directory structure and different teams owning different submodules. For example lets say the deep directory structures are X/Y/Z and P/Q/R but these folders are not owned by me, only project A and B are owned by me. I do not have permission to put settings.gradle file in folders/modules that is not owned by me also refactoring the folder structure is a non starter. Now using gradle how to I state the dependency that project B depends on project A?
E.g. folder structure: