MavenRepositoryContentDescriptor
, RepositoryContentDescriptor
public interface InclusiveRepositoryContentDescriptor
Descriptor of a repository content, used to avoid reaching to an external repository when not needed.
Only inclusions can be defined at this level (cross-repository content).
Excludes need to be defined per-repository using RepositoryContentDescriptor
.
Similarly to declaring includes on specific repositories via ArtifactRepository.content(Action)
,
inclusions are extensive, meaning that anything which doesn't match the includes will be
considered missing from the repository.
Modifier and Type | Method | Description |
---|---|---|
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 includeGroup(java.lang.String group)
group
- the group namevoid includeGroupByRegex(java.lang.String groupRegex)
groupRegex
- a regular expression of the group namevoid includeModule(java.lang.String group, java.lang.String moduleName)
group
- the group namemoduleName
- the module namevoid includeModuleByRegex(java.lang.String groupRegex, java.lang.String moduleNameRegex)
groupRegex
- the group name regular expressionmoduleNameRegex
- the module name regular expressionvoid includeVersion(java.lang.String group, java.lang.String moduleName, java.lang.String version)
group
- the group namemoduleName
- the module nameversion
- the module versionvoid includeVersionByRegex(java.lang.String groupRegex, java.lang.String moduleNameRegex, java.lang.String versionRegex)
groupRegex
- the group name regular expressionmoduleNameRegex
- the module name regular expressionversionRegex
- the module version regular expression