gradle
8.4

# 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.

## Functions

authentication
Link copied to clipboard
abstract fun authentication(action: Action<out Any>)
credentials
Link copied to clipboard
abstract fun credentials(action: Action<out Any>)
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.

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.