ArtifactRepository, AuthenticationSupported, MetadataSupplierAwarepublic interface MavenArtifactRepository extends ArtifactRepository, 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.
|
java.net.URI |
getUrl() |
The base URL of this 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.
|
getName, setNameauthentication, credentials, credentials, getAuthentication, getCredentials, getCredentialssetComponentVersionsLister, setComponentVersionsLister, setMetadataSupplier, setMetadataSupplierjava.net.URI getUrl()
setArtifactUrls(Iterable).void setUrl(java.net.URI url)
setArtifactUrls(Iterable).url - 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.
url - 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.@Incubating void metadataSources(Action<? super MavenArtifactRepository.MetadataSources> configureAction)
configureAction - the configuration of metadata sources.