Gradle - cleanup the jvmToolchain setup

This commit is contained in:
Jakub Chrzanowski 2024-03-08 12:53:11 +01:00
parent 281eacf728
commit 8ddc338d23
No known key found for this signature in database
GPG Key ID: C39095BFD769862E
2 changed files with 3 additions and 6 deletions

View File

@ -7,6 +7,7 @@
### Changed
- Gradle - upgrade `org.gradle.toolchains.foojay-resolver-convention` to `0.8.0`
- Gradle - cleanup the `jvmToolchain` setup
### Fixed

View File

@ -26,13 +26,9 @@ dependencies {
// implementation(libs.annotations)
}
// Set the JVM language level used to build the project. Use Java 11 for 2020.3+, and Java 17 for 2022.2+.
// Set the JVM language level used to build the project.
kotlin {
@Suppress("UnstableApiUsage")
jvmToolchain {
languageVersion = JavaLanguageVersion.of(17)
vendor = JvmVendorSpec.JETBRAINS
}
jvmToolchain(17)
}
// Configure Gradle IntelliJ Plugin - read more: https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html