gradle
8.3

# resolve

abstract fun resolve(request: JavaToolchainRequest): Optional<JavaToolchainDownload>

Returns a JavaToolchainDownload if a Java toolchain matching the provided specification can be provided.

#### Return

empty Optional if and only if the provided specification can't be matched

#### Parameters

request

information about the toolchain needed and the environment it's needed in