gradle
8.6

# JavaInstallationMetadata

interface JavaInstallationMetadata(source)

Metadata about a Java tool obtained from a toolchain.

#### See also

JavaLauncher
JavaCompiler
JavadocTool

## Functions

getInstallationPath
Link copied to clipboard
@Internal
abstract fun getInstallationPath(): Directory
The path to installation this tool belongs to.
getJavaRuntimeVersion
Link copied to clipboard
@Internal
abstract fun getJavaRuntimeVersion(): String
Returns the full Java version (including the build number) of the JVM, as specified in its `java.runtime.version` property.
getJvmVersion
Link copied to clipboard
@Internal
abstract fun getJvmVersion(): String
Returns the version of the JVM, as specified in its `java.vm.version` property.
getLanguageVersion
Link copied to clipboard
@Input
abstract fun getLanguageVersion(): JavaLanguageVersion
Returns the language version of the JVM to which this tool belongs
getVendor
Link copied to clipboard
@Internal
abstract fun getVendor(): String
Returns a human-readable string for the vendor of the JVM.
isCurrentJvm
Link copied to clipboard
@Internal
@Incubating
abstract fun isCurrentJvm(): Boolean
Returns true if this installation corresponds to the build JVM.