JavaToolchainRepository

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

Link copied to clipboard
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
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
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.
Link copied to clipboard
Class implementing the JavaToolchainResolver being configured.