# JavaToolchainRepository

@Incubating
interface JavaToolchainRepository : AuthenticationSupported(source)

Named configuration of JavaToolchainResolver implementations, identified by their implementation class.

The implementation class is the only mandatory property (it identifies the JavaToolchainResolver being configured; the name is arbitrary, chosen by the build author).

Authentication related configuration is optional.

#### Since

7.6

## Functions

authentication
Link copied to clipboard
abstract fun authentication(action: Action<in AuthenticationContainer>)
Configures the authentication schemes for this repository.
credentials
Link copied to clipboard
abstract fun credentials(credentialsType: Class<out Credentials>)
Configures the credentials for this repository that will be provided by the build.
abstract fun credentials(action: Action<in PasswordCredentials>)
Configures the username and password credentials for this repository using the supplied action.
abstract fun <T : Credentials?> credentials(credentialsType: Class<T>, action: Action<in T>)
Configures the credentials for this repository using the supplied action.
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
Returns the authentication schemes for this repository.
getCredentials
Link copied to clipboard
abstract fun getCredentials(): PasswordCredentials
Returns the username and password credentials used to authenticate to this repository.
abstract fun <T : Credentials?> getCredentials(credentialsType: Class<T>): T
Returns the credentials of the specified type used to authenticate with this repository.
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.

getName
Link copied to clipboard
abstract fun getName(): String
Name of the configuration, set by the build author, can be anything, as long as it doesn't conflict with other repository names.
getResolverClass
Link copied to clipboard
abstract fun getResolverClass(): Property<Class<out JavaToolchainResolver>>
Class implementing the JavaToolchainResolver being configured.