# IvyArtifactRepository

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

An artifact repository which uses an Ivy format to store artifacts and meta-data.

When used to resolve metadata and artifact files, all available patterns will be searched.

When used to upload metadata and artifact files, only a single, primary pattern will be used:

1. If a URL is specified via setUrl then that URL will be used for upload, combined with the applied layout.
2. If no URL has been specified but additional patterns have been added via artifactPattern or ivyPattern, then the first defined pattern will be used.

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

## Types

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

## Properties

GRADLE_ARTIFACT_PATTERN
Link copied to clipboard
val GRADLE_ARTIFACT_PATTERN: String = "[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier])(.[ext])"
GRADLE_IVY_PATTERN
Link copied to clipboard
val GRADLE_IVY_PATTERN: String = "[organisation]/[module]/[revision]/ivy-[revision].xml"
IVY_ARTIFACT_PATTERN
Link copied to clipboard
val IVY_ARTIFACT_PATTERN: String = "[organisation]/[module]/[revision]/[type]s/[artifact](.[ext])"
MAVEN_ARTIFACT_PATTERN
Link copied to clipboard
val MAVEN_ARTIFACT_PATTERN: String = "[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier])(.[ext])"
MAVEN_IVY_PATTERN
Link copied to clipboard
val MAVEN_IVY_PATTERN: String = "[organisation]/[module]/[revision]/ivy-[revision].xml"

## Functions

artifactPattern
Link copied to clipboard
abstract fun artifactPattern(pattern: String)
Adds an independent pattern that will be used to locate artifact files in this repository.
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.

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(): IvyArtifactRepository.MetadataSources
Returns the current metadata sources configuration for the repository.
getName
Link copied to clipboard
abstract fun getName(): String
getResolve
Link copied to clipboard
abstract fun getResolve(): IvyArtifactRepositoryMetaDataProvider
Returns the meta-data provider used when resolving artifacts from this repository.
getUrl
Link copied to clipboard
abstract fun getUrl(): URI
The base URL of this repository.
isAllowInsecureProtocol
Link copied to clipboard
abstract fun isAllowInsecureProtocol(): Boolean
ivyPattern
Link copied to clipboard
abstract fun ivyPattern(pattern: String)
Adds an independent pattern that will be used to locate ivy files in this repository.
layout
Link copied to clipboard
abstract fun layout(layoutName: String)
Specifies how the items of the repository are organized.
metadataSources
Link copied to clipboard
abstract fun metadataSources(configureAction: Action<in IvyArtifactRepository.MetadataSources>)
Configures the metadata sources for this repository.
patternLayout
Link copied to clipboard
abstract fun patternLayout(config: Action<in IvyPatternRepositoryLayout>)
Specifies how the items of the repository are organized.
setAllowInsecureProtocol
Link copied to clipboard
abstract fun setAllowInsecureProtocol(allowInsecureProtocol: Boolean)
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>)
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.
abstract fun setMetadataSupplier(rule: Class<out ComponentMetadataSupplier>, configureAction: Action<in ActionConfiguration>)
Sets a custom metadata rule, possibly configuring the rule.
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.