ArtifactRepository, AuthenticationSupported, MetadataSupplierAware, UrlArtifactRepositorypublic interface MavenArtifactRepository extends ArtifactRepository, UrlArtifactRepository, AuthenticationSupported, MetadataSupplierAware
Repositories of this type are created by the RepositoryHandler.maven(org.gradle.api.Action) group of methods.
| Modifier and Type | Interface | Description |
|---|---|---|
static interface |
MavenArtifactRepository.MetadataSources |
Allows configuring the sources of metadata for a specific repository.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
artifactUrls(java.lang.Object... urls) |
Adds some additional URLs to use to find artifact files.
|
java.util.Set<java.net.URI> |
getArtifactUrls() |
Returns the additional URLs to use to find artifact files.
|
MavenArtifactRepository.MetadataSources |
getMetadataSources() |
Returns the current metadata sources configuration for the repository.
|
java.net.URI |
getUrl() |
The base URL of this repository.
|
void |
mavenContent(Action<? super MavenRepositoryContentDescriptor> configureAction) |
Configures the content of this Maven repository.
|
void |
metadataSources(Action<? super MavenArtifactRepository.MetadataSources> configureAction) |
Configures the metadata sources for this repository.
|
void |
setArtifactUrls(java.lang.Iterable<?> urls) |
Sets the additional URLs to use to find artifact files.
|
void |
setArtifactUrls(java.util.Set<java.net.URI> urls) |
Sets the additional URLs to use to find artifact files.
|
void |
setUrl(java.lang.Object url) |
Sets the base URL of this repository.
|
void |
setUrl(java.net.URI url) |
Sets the base URL of this repository.
|
content, getName, setNameauthentication, credentials, credentials, credentials, getAuthentication, getCredentials, getCredentialssetComponentVersionsLister, setComponentVersionsLister, setMetadataSupplier, setMetadataSupplierisAllowInsecureProtocol, setAllowInsecureProtocoljava.net.URI getUrl()
setArtifactUrls(Iterable).getUrl in interface UrlArtifactRepositoryvoid setUrl(java.net.URI url)
setArtifactUrls(Iterable).setUrl in interface UrlArtifactRepositoryurl - The base URL.void setUrl(java.lang.Object url)
setArtifactUrls(Iterable).
The provided value is evaluated as per Project.uri(Object). This means, for example, you can pass in a File object, or a relative path to be evaluated relative
to the project directory.
setUrl in interface UrlArtifactRepositoryurl - The base URL.java.util.Set<java.net.URI> getArtifactUrls()
void artifactUrls(java.lang.Object... urls)
The provided values are evaluated as per Project.uri(Object). This means, for example, you can pass in a File object, or a relative path to be evaluated
relative to the project directory.
urls - The URLs to add.void setArtifactUrls(java.util.Set<java.net.URI> urls)
urls - The URLs.void setArtifactUrls(java.lang.Iterable<?> urls)
The provided values are evaluated as per Project.uri(Object). This means, for example, you can pass in a File object, or a relative path to be evaluated
relative to the project directory.
urls - The URLs.void metadataSources(Action<? super MavenArtifactRepository.MetadataSources> configureAction)
configureAction - the configuration of metadata sources.MavenArtifactRepository.MetadataSources getMetadataSources()
void mavenContent(Action<? super MavenRepositoryContentDescriptor> configureAction)
configureAction - the configuration action