kotlin-bip39 icon indicating copy to clipboard operation
kotlin-bip39 copied to clipboard

Consider using Gradle JVM toolchain

Open HonzaR opened this issue 1 year ago • 0 comments

Is your feature request related to a problem? Please describe.

We'd like to have our Java version unified across the whole project. We could consider using the Gradle jvm toolchain as described here: https://docs.gradle.org/current/userguide/toolchains.html

Describe the solution you'd like

Something like:

java {
    toolchain {
        languageVersion.set(JavaLanguageVersion.of(17))
        vendor.set(JvmVendorSpec.ADOPTIUM)
    }
}

See also this new Gradle 8.4 feature:

Introduce JetBrains as a known JVM vendor It is now possible to use JetBrains as a known JVM vendor of Toolchains when referring to JetBrains Runtime when using :

java {
    toolchain { 
        languageVersion.set(JavaLanguageVersion.of(17))
        vendor.set(JvmVendorSpec.JETBRAINS)
    }
}

HonzaR avatar Dec 07 '23 15:12 HonzaR