I guess Multiple SourceSets with include option is basically about the same issue.
So maybe it is just not doable.