I have a project A which has all spark and hadoop dependencies. Another project B has been created which requires the code of project A to execute as well as it's dependencies. The reason for having project A and its dependencies is because the project B can be imagined as an extension of Project A with some additional functionality and also code reusability purposes. The version of scala for both the projects will be the same.
Basically Project B Dependencies = (Project A / Project A Dependencies)
Any help on how to achieve this would be appreciated.