How to inherit sourceSets from another gradle

I have a build.gradle file, hich has some sourceSets in it. however, i want it to inherit source sets from a super file. whats the idiomatic way to do this ?

I kno we can inherit via tasks, but im not sure this is what i want to do.

Any thoughts would be appreciated ! thanks :slight_smile:

Source sets are specific to a project and I don’t think you can inherit them. Why do you want to inherit them? What’s the use case?