Slackbot
06/16/2022, 3:55 PMThomas Broyer
06/16/2022, 4:06 PMThomas Broyer
06/16/2022, 4:07 PMjava {
toolchain {
languageVersion.set(JavaLanguageVersion.of(project.the<VersionCatalogsExtension>().named("libs").findVersion("javaToolchain").orElseThrow().requiredVersion))
}
}
ebtokyo
06/16/2022, 4:29 PM.toInt()
but 🤷Thomas Broyer
06/17/2022, 8:28 AMJavaLanguageVersion.of()
is not much different from .toInt()
as some parsing is involved anyway, and I need a string, not any "rich version" (see .requiredVersion
, it would ignore any other property of rich versions here).
(I do believe I've used .toInt()
in the past, or maybe just in another project, to set .release
, rather than using a toolchain)