ArtifactRepository
, AuthenticationSupported
, MetadataSupplierAware
public 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(Object... urls) |
Adds some additional URLs to use to find artifact files.
|
Set<URI> |
getArtifactUrls() |
Returns the additional URLs to use to find artifact files.
|
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(Iterable<?> urls) |
Sets the additional URLs to use to find artifact files.
|
void |
setArtifactUrls(Set<URI> urls) |
Sets the additional URLs to use to find artifact files.
|
void |
setUrl(Object url) |
Sets the base URL of this repository.
|
void |
setUrl(URI url) |
Sets the base URL of this repository.
|
content, getName, setName
authentication, credentials, credentials, getAuthentication, getCredentials, getCredentials
setComponentVersionsLister, setComponentVersionsLister, setMetadataSupplier, setMetadataSupplier
URI getUrl()
setArtifactUrls(Iterable)
.void setUrl(URI url)
setArtifactUrls(Iterable)
.url
- The base URL.void setUrl(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.Set<URI> getArtifactUrls()
void artifactUrls(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(Set<URI> urls)
urls
- The URLs.void setArtifactUrls(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.@Incubating void mavenContent(Action<? super MavenRepositoryContentDescriptor> configureAction)
configureAction
- the configuration action