# MavenArtifactRepository

interface MavenArtifactRepository : ArtifactRepository, UrlArtifactRepository, AuthenticationSupported, MetadataSupplierAware(source)

An artifact repository which uses a Maven format to store artifacts and meta-data.

Repositories of this type are created by the maven group of methods.

## Types

MetadataSources
Link copied to clipboard
interface MetadataSources
Allows configuring the sources of metadata for a specific repository.

## Functions

artifactUrls
Link copied to clipboard
abstract fun artifactUrls(urls: Array<Any>)
Adds some additional URLs to use to find artifact files.
authentication
Link copied to clipboard
abstract fun authentication(action: Action<in AuthenticationContainer>)
content
Link copied to clipboard
abstract fun content(configureAction: Action<in RepositoryContentDescriptor>)
credentials
Link copied to clipboard
abstract fun credentials(action: Action<in PasswordCredentials>)
credentials
Link copied to clipboard
inline fun AuthenticationSupported. credentials(credentialsType: KClass<out Credentials>)
inline fun <T : Credentials> AuthenticationSupported. credentials(credentialsType: KClass<T>, action: Action<in T>)

Kotlin extension function taking kotlin.reflect.KClass for org.gradle.api.artifacts.repositories.AuthenticationSupported.credentials.

getAllowInsecureContinueWhenDisabled
Link copied to clipboard
abstract fun getAllowInsecureContinueWhenDisabled(): Property<Boolean>
getArtifactUrls
Link copied to clipboard
abstract fun getArtifactUrls(): Set<URI>
Returns the additional URLs to use to find artifact files.
getAuthentication
Link copied to clipboard
abstract fun getAuthentication(): AuthenticationContainer
getCredentials
Link copied to clipboard
abstract fun getCredentials(): PasswordCredentials
abstract fun <T : Credentials?> getCredentials(credentialsType: Class<T>): T
getCredentials
Link copied to clipboard
inline fun <T : Credentials> AuthenticationSupported. getCredentials(credentialsType: KClass<T>): T

Kotlin extension function taking kotlin.reflect.KClass for org.gradle.api.artifacts.repositories.AuthenticationSupported.getCredentials.

getMetadataSources
Link copied to clipboard
abstract fun getMetadataSources(): MavenArtifactRepository.MetadataSources
Returns the current metadata sources configuration for the repository.
getName
Link copied to clipboard
abstract fun getName(): String
getUrl
Link copied to clipboard
abstract fun getUrl(): URI
The base URL of this repository.
isAllowInsecureProtocol
Link copied to clipboard
abstract fun isAllowInsecureProtocol(): Boolean
mavenContent
Link copied to clipboard
abstract fun mavenContent(configureAction: Action<in MavenRepositoryContentDescriptor>)
Configures the content of this Maven repository.
metadataSources
Link copied to clipboard
abstract fun metadataSources(configureAction: Action<in MavenArtifactRepository.MetadataSources>)
Configures the metadata sources for this repository.
setAllowInsecureProtocol
Link copied to clipboard
abstract fun setAllowInsecureProtocol(allowInsecureProtocol: Boolean)
setArtifactUrls
Link copied to clipboard
abstract fun setArtifactUrls(urls: Iterable<out Any>)
abstract fun setArtifactUrls(urls: Set<URI>)
Sets the additional URLs to use to find artifact files.
setComponentVersionsLister
Link copied to clipboard
abstract fun setComponentVersionsLister(lister: Class<out ComponentMetadataVersionLister>)
setComponentVersionsLister
Link copied to clipboard
inline fun MetadataSupplierAware. setComponentVersionsLister(lister: KClass<out ComponentMetadataVersionLister>)
inline fun MetadataSupplierAware. setComponentVersionsLister(lister: KClass<out ComponentMetadataVersionLister>, configureAction: Action<in ActionConfiguration>)

Kotlin extension function taking kotlin.reflect.KClass for org.gradle.api.artifacts.repositories.MetadataSupplierAware.setComponentVersionsLister.

setMetadataSupplier
Link copied to clipboard
abstract fun setMetadataSupplier(rule: Class<out ComponentMetadataSupplier>)
setMetadataSupplier
Link copied to clipboard
inline fun MetadataSupplierAware. setMetadataSupplier(rule: KClass<out ComponentMetadataSupplier>)
inline fun MetadataSupplierAware. setMetadataSupplier(rule: KClass<out ComponentMetadataSupplier>, configureAction: Action<in ActionConfiguration>)

Kotlin extension function taking kotlin.reflect.KClass for org.gradle.api.artifacts.repositories.MetadataSupplierAware.setMetadataSupplier.

setName
Link copied to clipboard
abstract fun setName(name: String)
setUrl
Link copied to clipboard
abstract fun setUrl(url: Any)
abstract fun setUrl(url: URI)
Sets the base URL of this repository.