Electric-Coin-Company / kotlin-bip39

A concise implementation of BIP-0039 in Kotlin for Android. In order, it prioritizes being secure, concise and idiomatic.
MIT License
35 stars 8 forks source link

Consider using Gradle JVM toolchain #235

Open HonzaR opened 9 months ago

HonzaR commented 9 months ago

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)
    }
}