Interface ExclusiveContentRepository
public interface ExclusiveContentRepository
Describes one or more repositories which together constitute the only possible
source for an artifact, independently of the others.
This means that if a repository declares an include, other repositories will
automatically exclude it.
- Since:
- 6.2
-
Method Summary
Modifier and TypeMethodDescriptionfilter(Action<? super InclusiveRepositoryContentDescriptor> config) Defines the content filter for this repositoryforRepositories(ArtifactRepository... repositories) Declares the repositoryforRepository(org.gradle.internal.Factory<? extends ArtifactRepository> repository) Declares the repository
-
Method Details
-
forRepository
ExclusiveContentRepository forRepository(org.gradle.internal.Factory<? extends ArtifactRepository> repository) Declares the repository- Parameters:
repository- the repository for which we declare exclusive content- Returns:
- this repository descriptor
-
forRepositories
Declares the repository- Parameters:
repositories- the repositories for which we declare exclusive content- Returns:
- this repository descriptor
-
filter
Defines the content filter for this repository- Parameters:
config- the configuration of the filter- Returns:
- this repository descriptor
-