InclusiveRepositoryContentDescriptor
MavenRepositoryContentDescriptor
public interface RepositoryContentDescriptor extends InclusiveRepositoryContentDescriptor
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.
Modifier and Type | Method | Description |
---|---|---|
void |
excludeGroup(java.lang.String group) |
Declares that an entire group shouldn't be searched for in this repository.
|
void |
excludeGroupByRegex(java.lang.String groupRegex) |
Declares that an entire group shouldn't be searched for in this repository.
|
void |
excludeModule(java.lang.String group,
java.lang.String moduleName) |
Declares that an entire module shouldn't be searched for in this repository.
|
void |
excludeModuleByRegex(java.lang.String groupRegex,
java.lang.String moduleNameRegex) |
Declares that an entire module shouldn't be searched for in this repository, using regular expressions.
|
void |
excludeVersion(java.lang.String group,
java.lang.String moduleName,
java.lang.String version) |
Declares that a specific module version shouldn't be searched for in this repository.
|
void |
excludeVersionByRegex(java.lang.String groupRegex,
java.lang.String moduleNameRegex,
java.lang.String versionRegex) |
Declares that a specific module version shouldn't be searched for in this repository, using regular expressions.
|
void |
includeGroup(java.lang.String group) |
Declares that an entire group should be searched for in this repository.
|
void |
includeGroupByRegex(java.lang.String groupRegex) |
Declares that an entire group should be searched for in this repository.
|
void |
includeModule(java.lang.String group,
java.lang.String moduleName) |
Declares that an entire module should be searched for in this repository.
|
void |
includeModuleByRegex(java.lang.String groupRegex,
java.lang.String moduleNameRegex) |
Declares that an entire module should be searched for in this repository, using regular expressions.
|
void |
includeVersion(java.lang.String group,
java.lang.String moduleName,
java.lang.String version) |
Declares that a specific module version should be searched for in this repository.
|
void |
includeVersionByRegex(java.lang.String groupRegex,
java.lang.String moduleNameRegex,
java.lang.String versionRegex) |
Declares that a specific module version should be searched for in this repository, using regular expressions.
|
void |
notForConfigurations(java.lang.String... configurationNames) |
Declares that this repository should not be used for a specific
set of configurations.
|
<T> void |
onlyForAttribute(Attribute<T> attribute,
T... validValues) |
Declares that this repository will only be searched if the consumer requires a
specific attribute.
|
void |
onlyForConfigurations(java.lang.String... configurationNames) |
Declares that this repository should only be used for a specific
set of configurations.
|
void includeGroup(java.lang.String group)
includeGroup
in interface InclusiveRepositoryContentDescriptor
group
- the group namevoid includeGroupByRegex(java.lang.String groupRegex)
includeGroupByRegex
in interface InclusiveRepositoryContentDescriptor
groupRegex
- a regular expression of the group namevoid includeModule(java.lang.String group, java.lang.String moduleName)
includeModule
in interface InclusiveRepositoryContentDescriptor
group
- the group namemoduleName
- the module namevoid includeModuleByRegex(java.lang.String groupRegex, java.lang.String moduleNameRegex)
includeModuleByRegex
in interface InclusiveRepositoryContentDescriptor
groupRegex
- the group name regular expressionmoduleNameRegex
- the module name regular expressionvoid includeVersion(java.lang.String group, java.lang.String moduleName, java.lang.String version)
The version notation supports range notations like [1.0,2.0[
.
includeVersion
in interface InclusiveRepositoryContentDescriptor
group
- the group namemoduleName
- the module nameversion
- the module versionvoid includeVersionByRegex(java.lang.String groupRegex, java.lang.String moduleNameRegex, java.lang.String versionRegex)
The version notation for a regex will be matched against a single version and does not support range notations.
includeVersionByRegex
in interface InclusiveRepositoryContentDescriptor
groupRegex
- the group name regular expressionmoduleNameRegex
- the module name regular expressionversionRegex
- the module version regular expressionvoid excludeGroup(java.lang.String group)
group
- the group namevoid excludeGroupByRegex(java.lang.String groupRegex)
groupRegex
- the group name regular expressionvoid excludeModule(java.lang.String group, java.lang.String moduleName)
group
- the group namemoduleName
- the module namevoid excludeModuleByRegex(java.lang.String groupRegex, java.lang.String moduleNameRegex)
groupRegex
- the group name regular expressionmoduleNameRegex
- the module name regular expressionvoid excludeVersion(java.lang.String group, java.lang.String moduleName, java.lang.String version)
The version notation for a regex will be matched against a single version and does not support range notations.
group
- the group namemoduleName
- the module nameversion
- the module versionvoid excludeVersionByRegex(java.lang.String groupRegex, java.lang.String moduleNameRegex, java.lang.String versionRegex)
The version notation for a regex will be matched against a single version and does not support range notations.
groupRegex
- the group namemoduleNameRegex
- the module nameversionRegex
- the module versionvoid onlyForConfigurations(java.lang.String... configurationNames)
configurationNames
- the names of the configurations the repository will be used forvoid notForConfigurations(java.lang.String... configurationNames)
configurationNames
- the names of the configurations the repository will not be used for<T> void onlyForAttribute(Attribute<T> attribute, T... validValues)
T
- the type of the attributeattribute
- the attributevalidValues
- the list of accepted values