sourceSets.main.java { srcDir 'src' exclude { FileTreeElement e -> e.path.startsWith('domain/client/') && ! e.path.contains('/shared/') } }