MavenArtifactRepository

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

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

Functions

Link copied to clipboard
abstract fun artifactUrls(urls: Array<Any>)
Adds some additional URLs to use to find artifact files.
Link copied to clipboard
Link copied to clipboard
abstract fun content(configureAction: Action<in RepositoryContentDescriptor>)
Link copied to clipboard
abstract fun credentials(action: Action<in PasswordCredentials>)
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.

Link copied to clipboard
abstract fun getArtifactUrls(): Set<URI>
Returns the additional URLs to use to find artifact files.
Link copied to clipboard
Link copied to clipboard
abstract fun <T : Credentials?> getCredentials(credentialsType: Class<T>): T
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.

Link copied to clipboard
Returns the current metadata sources configuration for the repository.
Link copied to clipboard
abstract fun getName(): String
Link copied to clipboard
abstract fun getUrl(): URI
The base URL of this repository.
Link copied to clipboard
Link copied to clipboard
abstract fun mavenContent(configureAction: Action<in MavenRepositoryContentDescriptor>)
Configures the content of this Maven repository.
Link copied to clipboard
Configures the metadata sources for this repository.
Link copied to clipboard
abstract fun setAllowInsecureProtocol(allowInsecureProtocol: Boolean)
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.
Link copied to clipboard
Link copied to clipboard
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.

Link copied to clipboard
Link copied to clipboard
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.

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