Skip to content

Commit

Permalink
Setter JVM Toolchain version
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsteinsland committed Nov 12, 2024
1 parent cd1a3c9 commit f811af8
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import com.fasterxml.jackson.databind.ObjectMapper

val jvmTarget = 21

plugins {
kotlin("jvm") version "2.0.21"
}
Expand Down Expand Up @@ -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<Test> {
useJUnitPlatform()
testLogging {
Expand Down

0 comments on commit f811af8

Please sign in to comment.