Interface MavenArtifactRepository.MetadataSources
- Enclosing interface:
- MavenArtifactRepository
public static interface MavenArtifactRepository.MetadataSources
Allows configuring the sources of metadata for a specific repository.
- Since:
- 4.5
- 
Method SummaryModifier and TypeMethodDescriptionvoidartifact()Indicates that this repository may not contain metadata files, but we can infer it from the presence of an artifact file.voidIndicates that this repository will contain Gradle metadata.voidIndicates that this repository will ignore Gradle module metadata redirection markers found in POM files.booleanIndicates if this repository only contains artifacts.booleanIndicates if this repository contains Gradle module metadata.booleanIndicates if this repository ignores Gradle module metadata redirection markers.booleanIndicates if this repository contains Maven POM files.voidmavenPom()Indicates that this repository will contain Maven POM files.
- 
Method Details- 
gradleMetadatavoid gradleMetadata()Indicates that this repository will contain Gradle metadata.
- 
mavenPomvoid mavenPom()Indicates that this repository will contain Maven POM files. If the POM file contains a marker telling that Gradle metadata exists for this component, Gradle will also look for the Gradle metadata file. Gradle module metadata redirection will not happen ifignoreGradleMetadataRedirection()has been used.
- 
artifactvoid artifact()Indicates that this repository may not contain metadata files, but we can infer it from the presence of an artifact file.
- 
ignoreGradleMetadataRedirectionvoid ignoreGradleMetadataRedirection()Indicates that this repository will ignore Gradle module metadata redirection markers found in POM files.- Since:
- 5.6
 
- 
isGradleMetadataEnabledboolean isGradleMetadataEnabled()Indicates if this repository contains Gradle module metadata.- Since:
- 6.4
 
- 
isMavenPomEnabledboolean isMavenPomEnabled()Indicates if this repository contains Maven POM files.- Since:
- 6.4
 
- 
isArtifactEnabledboolean isArtifactEnabled()Indicates if this repository only contains artifacts.- Since:
- 6.4
 
- 
isIgnoreGradleMetadataRedirectionEnabledboolean isIgnoreGradleMetadataRedirectionEnabled()Indicates if this repository ignores Gradle module metadata redirection markers.- Since:
- 6.4
 
 
-