api / org.gradle.api.plugins.quality / TargetJdk / toVersion

toVersion

static fun toVersion(value: Any): TargetJdk

Converts the given object into a TargetJdk.

Parameters

value - An object whose toString() value is to be converted. May be null.

Exceptions

IllegalArgumentException - when the provided value cannot be converted.

Return
The version, or null if the provided value is null.