# RepositoryContentDescriptor

interface RepositoryContentDescriptor : InclusiveRepositoryContentDescriptor(source)

Descriptor of a repository content, used to avoid reaching to an external repository when not needed.

Excludes are applied after includes. This means that by default, everything is included and nothing excluded. If includes are added, then if the module doesn't match any of the includes, it's excluded. Then if it does, but it also matches one of the excludes, it's also excluded.

#### Since

5.1

#### Inheritors

MavenRepositoryContentDescriptor

## Functions

excludeGroup
Link copied to clipboard
abstract fun excludeGroup(group: String)
Declares that an entire group shouldn't be searched for in this repository.
excludeGroupAndSubgroups
Link copied to clipboard
@Incubating
abstract fun excludeGroupAndSubgroups(groupPrefix: String)
Declares that an entire group and its subgroups shouldn't be searched for in this repository.
excludeGroupByRegex
Link copied to clipboard
abstract fun excludeGroupByRegex(groupRegex: String)
Declares that an entire group shouldn't be searched for in this repository.
excludeModule
Link copied to clipboard
abstract fun excludeModule(group: String, moduleName: String)
Declares that an entire module shouldn't be searched for in this repository.
excludeModuleByRegex
Link copied to clipboard
abstract fun excludeModuleByRegex(groupRegex: String, moduleNameRegex: String)
Declares that an entire module shouldn't be searched for in this repository, using regular expressions.
excludeVersion
Link copied to clipboard
abstract fun excludeVersion(group: String, moduleName: String, version: String)
Declares that a specific module version shouldn't be searched for in this repository.
excludeVersionByRegex
Link copied to clipboard
abstract fun excludeVersionByRegex(groupRegex: String, moduleNameRegex: String, versionRegex: String)
Declares that a specific module version shouldn't be searched for in this repository, using regular expressions.
includeGroup
Link copied to clipboard
abstract fun includeGroup(group: String)
includeGroupAndSubgroups
Link copied to clipboard
abstract fun includeGroupAndSubgroups(groupPrefix: String)
includeGroupByRegex
Link copied to clipboard
abstract fun includeGroupByRegex(groupRegex: String)
includeModule
Link copied to clipboard
abstract fun includeModule(group: String, moduleName: String)
includeModuleByRegex
Link copied to clipboard
abstract fun includeModuleByRegex(groupRegex: String, moduleNameRegex: String)
includeVersion
Link copied to clipboard
abstract fun includeVersion(group: String, moduleName: String, version: String)
includeVersionByRegex
Link copied to clipboard
abstract fun includeVersionByRegex(groupRegex: String, moduleNameRegex: String, versionRegex: String)
notForConfigurations
Link copied to clipboard
abstract fun notForConfigurations(configurationNames: Array<String>)
Declares that this repository should not be used for a specific set of configurations.
onlyForAttribute
Link copied to clipboard
abstract fun <T> onlyForAttribute(attribute: Attribute<T>, validValues: Array<T>)
Declares that this repository will only be searched if the consumer requires a specific attribute.
onlyForConfigurations
Link copied to clipboard
abstract fun onlyForConfigurations(configurationNames: Array<String>)
Declares that this repository should only be used for a specific set of configurations.