I consider the sourceSets of dependent project to be private and should never be accessed like this. Eg:
runtime project(':rsaquery').sourceSets.filter.output
A couple of options
- Create another jar in
:rsaquery
with a classifier of “filter” and depend on that instead. - Create a “filter” configuration in
:rsaquery
and depend on it via
runtime project(path: ':rsaquery', configuration: 'filter')