From f811af81a77a77c772a91e7e89165590b757aea6 Mon Sep 17 00:00:00 2001 From: david steinsland Date: Tue, 12 Nov 2024 08:54:48 +0100 Subject: [PATCH] Setter JVM Toolchain version --- build.gradle.kts | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index ee879288..91a7e06b 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,7 +1,5 @@ import com.fasterxml.jackson.databind.ObjectMapper -val jvmTarget = 21 - plugins { kotlin("jvm") version "2.0.21" } @@ -129,13 +127,13 @@ allprojects { maven("https://github-package-registry-mirror.gc.nav.no/cached/maven-release") } - tasks { - java { - toolchain { - languageVersion = JavaLanguageVersion.of(jvmTarget) - } + kotlin { + jvmToolchain { + languageVersion.set(JavaLanguageVersion.of("21")) } + } + tasks { withType { useJUnitPlatform() testLogging {