Interface InclusiveRepositoryContentDescriptor
-
- All Known Subinterfaces:
MavenRepositoryContentDescriptor,RepositoryContentDescriptor
public interface InclusiveRepositoryContentDescriptorDescriptor 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 viaArtifactRepository.content(Action), inclusions are extensive, meaning that anything which doesn't match the includes will be considered missing from the repository.- Since:
- 6.2
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidincludeGroup(java.lang.String group)Declares that an entire group should be searched for in this repository.voidincludeGroupAndSubgroups(java.lang.String groupPrefix)Declares that an entire group and its subgroups should be searched for in this repository.voidincludeGroupByRegex(java.lang.String groupRegex)Declares that an entire group should be searched for in this repository.voidincludeModule(java.lang.String group, java.lang.String moduleName)Declares that an entire module should be searched for in this repository.voidincludeModuleByRegex(java.lang.String groupRegex, java.lang.String moduleNameRegex)Declares that an entire module should be searched for in this repository, using regular expressions.voidincludeVersion(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.voidincludeVersionByRegex(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.
-
-
-
Method Detail
-
includeGroup
void includeGroup(java.lang.String group)
Declares that an entire group should be searched for in this repository.- Parameters:
group- the group name
-
includeGroupAndSubgroups
@Incubating void includeGroupAndSubgroups(java.lang.String groupPrefix)
Declares that an entire group and its subgroups should be searched for in this repository.A subgroup is a group that starts with the given prefix and has a dot immediately after the prefix. For example, if the prefix is
org.gradle, thenorg.gradleis matched as a group, andorg.gradle.fooandorg.gradle.foo.barare matched as subgroups.org.gradlefoois not matched as a subgroup.- Parameters:
groupPrefix- the group prefix to include- Since:
- 8.1
-
includeGroupByRegex
void includeGroupByRegex(java.lang.String groupRegex)
Declares that an entire group should be searched for in this repository.- Parameters:
groupRegex- a regular expression of the group name
-
includeModule
void includeModule(java.lang.String group, java.lang.String moduleName)Declares that an entire module should be searched for in this repository.- Parameters:
group- the group namemoduleName- the module name
-
includeModuleByRegex
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.- Parameters:
groupRegex- the group name regular expressionmoduleNameRegex- the module name regular expression
-
includeVersion
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.- Parameters:
group- the group namemoduleName- the module nameversion- the module version
-
includeVersionByRegex
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.- Parameters:
groupRegex- the group name regular expressionmoduleNameRegex- the module name regular expressionversionRegex- the module version regular expression
-
-