interface MavenArtifactRepository : ArtifactRepository, AuthenticationSupported, MetadataSupplierAware
An artifact repository which uses a Maven format to store artifacts and meta-data.
Repositories of this type are created by the org.gradle.api.artifacts.dsl.RepositoryHandler#maven(org.gradle.api.Action)
group of methods.
interface MetadataSources
Allows configuring the sources of metadata for a specific repository. |
abstract fun artifactUrls(vararg urls: Any): Unit
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 |
|
abstract fun getArtifactUrls(): MutableSet<URI>
Returns the additional URLs to use to find artifact files. Note that these URLs are not used to find POM files. |
|
abstract fun getUrl(): URI
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, using |
|
abstract fun metadataSources(configureAction: Action<in MetadataSources>): Unit
Configures the metadata sources for this repository. This method will replace any previously configured sources of metadata. |
|
abstract fun setArtifactUrls(urls: MutableSet<URI>): Unit
Sets the additional URLs to use to find artifact files. Note that these URLs are not used to find POM files. abstract fun setArtifactUrls(urls: MutableIterable<*>): Unit
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 |
|
abstract fun setUrl(url: URI): Unit
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, using abstract fun setUrl(url: Any): Unit
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, using The provided value is evaluated as per |
abstract fun authentication(action: Action<in AuthenticationContainer>): Unit
Configures the authentication schemes for this repository. This method executes the given action against the AuthenticationContainer for this project. The is passed to the closure as the closure's delegate. If no authentication schemes have been assigned to this repository, a default set of authentication schemes are used based on the repository's transport scheme.
Supported authentication scheme types extend org.gradle.authentication.Authentication. |
|
abstract fun credentials(action: Action<in PasswordCredentials>): Unit
Configures the username and password credentials for this repository using the supplied action. If no credentials have been assigned to this repository, an empty set of username and password credentials is assigned to this repository and passed to the action.
abstract fun <T : Credentials> credentials(credentialsType: Class<T>, action: Action<in T>): Unit
Configures the credentials for this repository using the supplied action. If no credentials have been assigned to this repository, an empty set of credentials of the specified type will be assigned to this repository and given to the configuration action. If credentials have already been specified for this repository, they will be passed to the given configuration action.
The following credential types are currently supported for the
|
|
abstract fun getAuthentication(): AuthenticationContainer
Returns the authentication schemes for this repository. |
|
abstract fun getCredentials(): PasswordCredentials
Returns the username and password credentials used to authenticate to this repository. If no credentials have been assigned to this repository, an empty set of username and password credentials is assigned to this repository and returned. If you are using a different type of credentials than PasswordCredentials, please use abstract fun <T : Credentials> getCredentials(credentialsType: Class<T>): T
Returns the credentials of the specified type used to authenticate with this repository. If no credentials have been assigned to this repository, an empty set of credentials of the specified type is assigned to this repository and returned. |
|
abstract fun getName(): String
Returns the name for this repository. A name must be unique amongst a repository set. A default name is provided for the repository if none is provided. The name is used in logging output and error reporting to point to information related to this repository. |
|
abstract fun setComponentVersionsLister(lister: Class<out ComponentMetadataVersionLister>): Unit abstract fun setComponentVersionsLister(lister: Class<out ComponentMetadataVersionLister>, configureAction: Action<in ActionConfiguration>): Unit
Sets a custom component versions lister. A versions lister will be called whenever a dynamic version is requested. |
|
abstract fun setMetadataSupplier(rule: Class<out ComponentMetadataSupplier>): Unit
Sets a custom metadata rule, which is capable of supplying the metadata of a component (status, status scheme, changing flag) whenever a dynamic version is requested. It can be used to provide metadata directly, instead of having to parse the Ivy descriptor. abstract fun setMetadataSupplier(rule: Class<out ComponentMetadataSupplier>, configureAction: Action<in ActionConfiguration>): Unit
Sets a custom metadata rule, possibly configuring the rule. |
|
abstract fun setName(name: String): Unit
Sets the name for this repository. If this repository is to be added to an org.gradle.api.artifacts.ArtifactRepositoryContainer (including org.gradle.api.artifacts.dsl.RepositoryHandler), its name cannot be changed after it has been added to the container. |