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!