PluginArtifactRepository

abstract class PluginArtifactRepository @Inject constructor(objects: ObjectFactory, instantiator: Instantiator, name: String, url: URI, val type: CustomPluginRepositoryType, allowInsecureProtocol: Boolean) : 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)

Properties

Link copied to clipboard
abstract val allowInsecureContinueWhenDisabled: Property<Boolean?>?
Link copied to clipboard
open override val authentication: Nothing
Link copied to clipboard
open override val credentials: PasswordCredentials
Link copied to clipboard
open override var isAllowInsecureProtocol: Boolean
Link copied to clipboard
open override var name: String
Link copied to clipboard
Link copied to clipboard
open override var url: URI

Functions

Link copied to clipboard
open override fun authentication(action: Action<in AuthenticationContainer>): Nothing
Link copied to clipboard
open override fun content(configureAction: Action<in RepositoryContentDescriptor>): Nothing
Link copied to clipboard
open override fun credentials(credentialsType: Class<out Credentials?>): Nothing
open override 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
open override fun getAuthentication(): Nothing
Link copied to clipboard
open override 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