PluginArtifactRepository

abstract class PluginArtifactRepository @Inject constructor(objects: ObjectFactory, instantiator: Instantiator, name: String, url: URI, val type: CustomPluginRepositoryType, allowInsecureProtocol: Boolean = true) : BaseArtifactRepository, AuthenticationSupported

Represents a repository used for handling custom plugin repositories with authentication support.

Parameters

objects

Factory for creating domain objects.

instantiator

The Gradle instantiator used to create new credential instances.

name

The name of the repository.

url

The URL of the repository.

type

The custom repository type for plugins.

allowInsecureProtocol

Flag indicating if insecure protocols (like http) are allowed.

See also

Constructors

Link copied to clipboard
@Inject
constructor(objects: ObjectFactory, instantiator: Instantiator, name: String, url: URI, type: CustomPluginRepositoryType, allowInsecureProtocol: Boolean = true)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
abstract fun authentication(action: Action<in AuthenticationContainer>)
Link copied to clipboard
open override fun content(configureAction: Action<in RepositoryContentDescriptor>): Nothing
Link copied to clipboard
abstract fun credentials(credentialsType: Class<out Credentials>)
abstract fun credentials(action: Action<in PasswordCredentials>)

open override fun <T : Credentials?> credentials(credentialsType: Class<T>, action: Action<in T>)

Configures the credentials for the repository.

Link copied to clipboard
inline fun <T : Credentials?> PluginArtifactRepository.credentials(action: Action<in T>)

Configures the credentials for the PluginArtifactRepository using the provided action.

Link copied to clipboard
abstract fun getAuthentication(): AuthenticationContainer
Link copied to clipboard
abstract fun getCredentials(): PasswordCredentials

open override fun <T : Credentials> getCredentials(credentialsType: Class<T>): T

Retrieves the credentials of the specified type for the repository.

Link copied to clipboard
open override fun getName(): String
Link copied to clipboard
open override fun getUrl(): URI
Link copied to clipboard
open override fun isAllowInsecureProtocol(): Boolean
Link copied to clipboard
open override fun setAllowInsecureProtocol(allowInsecureProtocol: Boolean): Nothing
Link copied to clipboard
open override fun setName(name: String): Nothing
Link copied to clipboard
open override fun setUrl(url: URI): Nothing
open override fun setUrl(url: Any): Nothing