I have a user defined sourcesets (mysourceset) in project A, and in project B want to depend on its output. I tried
testCompile project(path: ‘:A’, configuration: ‘mysourcesetCompile’) but no luck.
Also tried creating a configuration in project A and using it in project B as follows. testCompile project(’:A’).configurations.myconfig
also no luck!
I tried project(’:A’).files(’.’) which worked at the end. But looking for a better solution. Uploaded a mini sample project to: https://github.com/ghamarian/gradleproblem