zcash-android-wallet-sdk icon indicating copy to clipboard operation
zcash-android-wallet-sdk 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)
    }
}

From an older deleted branch: test

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 Jul 17 '23 10:07 HonzaR