Schnittstelle MavenArtifactRepository
- Alle Superschnittstellen:
ArtifactRepository,AuthenticationSupported,MetadataSupplierAware,UrlArtifactRepository
public interface MavenArtifactRepository
extends ArtifactRepository, UrlArtifactRepository, AuthenticationSupported, MetadataSupplierAware
An artifact repository which uses a Maven format to store artifacts and meta-data.
Repositories of this type are created by the RepositoryHandler.maven(org.gradle.api.Action) group of methods.
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypSchnittstelleBeschreibungstatic interfaceAllows configuring the sources of metadata for a specific repository. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidartifactUrls(Object... urls) Adds some additional URLs to use to find artifact files.Returns the additional URLs to use to find artifact files.Returns the current metadata sources configuration for the repository.getUrl()The base URL of this repository.voidmavenContent(Action<? super MavenRepositoryContentDescriptor> configureAction) Configures the content of this Maven repository.voidmetadataSources(Action<? super MavenArtifactRepository.MetadataSources> configureAction) Configures the metadata sources for this repository.voidsetArtifactUrls(Iterable<?> urls) Sets the additional URLs to use to find artifact files.voidsetArtifactUrls(Set<URI> urls) Sets the additional URLs to use to find artifact files.voidSets the base URL of this repository.voidSets the base URL of this repository.Von Schnittstelle geerbte Methoden org.gradle.api.artifacts.repositories.ArtifactRepository
content, getName, setNameVon Schnittstelle geerbte Methoden org.gradle.api.artifacts.repositories.AuthenticationSupported
authentication, credentials, credentials, credentials, getAuthentication, getCredentials, getCredentialsVon Schnittstelle geerbte Methoden org.gradle.api.artifacts.repositories.MetadataSupplierAware
setComponentVersionsLister, setComponentVersionsLister, setMetadataSupplier, setMetadataSupplierVon Schnittstelle geerbte Methoden org.gradle.api.artifacts.repositories.UrlArtifactRepository
getAllowInsecureContinueWhenDisabled, isAllowInsecureProtocol, setAllowInsecureProtocol
-
Methodendetails
-
getUrl
URI getUrl()The base URL of this repository. This URL is used to find both POMs and artifact files. You can add additional URLs to use to look for artifact files, such as jars, usingsetArtifactUrls(Iterable).- Angegeben von:
getUrlin SchnittstelleUrlArtifactRepository- Gibt zurück:
- The URL.
-
setUrl
Sets the base URL of this repository. This URL is used to find both POMs and artifact files. You can add additional URLs to use to look for artifact files, such as jars, usingsetArtifactUrls(Iterable).- Angegeben von:
setUrlin SchnittstelleUrlArtifactRepository- Parameter:
url- The base URL.- Seit:
- 4.0
-
setUrl
Sets the base URL of this repository. This URL is used to find both POMs and artifact files. You can add additional URLs to use to look for artifact files, such as jars, usingsetArtifactUrls(Iterable).The provided value is evaluated as per
Project.uri(Object). This means, for example, you can pass in aFileobject, or a relative path to be evaluated relative to the project directory.- Angegeben von:
setUrlin SchnittstelleUrlArtifactRepository- Parameter:
url- The base URL.
-
getArtifactUrls
Returns the additional URLs to use to find artifact files. Note that these URLs are not used to find POM files.- Gibt zurück:
- The additional URLs. Returns an empty list if there are no such URLs.
-
artifactUrls
Adds some additional URLs to use to find artifact files. Note that these URLs are not used to find POM files.The provided values are evaluated as per
Project.uri(Object). This means, for example, you can pass in aFileobject, or a relative path to be evaluated relative to the project directory.- Parameter:
urls- The URLs to add.
-
setArtifactUrls
Sets the additional URLs to use to find artifact files. Note that these URLs are not used to find POM files.- Parameter:
urls- The URLs.- Seit:
- 4.0
-
setArtifactUrls
Sets the additional URLs to use to find artifact files. Note that these URLs are not used to find POM files.The provided values are evaluated as per
Project.uri(Object). This means, for example, you can pass in aFileobject, or a relative path to be evaluated relative to the project directory.- Parameter:
urls- The URLs.
-
metadataSources
Configures the metadata sources for this repository. This method will replace any previously configured sources of metadata.- Parameter:
configureAction- the configuration of metadata sources.- Seit:
- 4.5
-
getMetadataSources
MavenArtifactRepository.MetadataSources getMetadataSources()Returns the current metadata sources configuration for the repository.- Seit:
- 6.4
-
mavenContent
Configures the content of this Maven repository.- Parameter:
configureAction- the configuration action- Seit:
- 5.1
-