Declaring (mutual) exclusive content for more than 1 repository

An ExclusiveContentRepository, which is created by exclusiveContent { ... }, can be defined multiple times, just like other repository types. Same as you could list multiple maven { url '...' } repositories, you can list multiple exclusiveContent { ... } repositories with their own rules per set of repositories. It’s effectively a composite. This is easier to see in the documentation for RepositoryHandler rather than the user guide examples.

1 Like