From 8aa73145ea7332aa5c3e22eca9b8b4f45767603b Mon Sep 17 00:00:00 2001 From: "M.P. Korstanje" Date: Mon, 17 Nov 2025 23:45:01 +0100 Subject: [PATCH] Set kotlin.compiler.jvmTarget to 17 The `jvmTarget` defaults 1.8. So without setting the `jvmTarget`, when using inline fun such as `assertDoesNotThrow`, the compiler will complain: ``` Kotlin: Cannot inline bytecode built with JVM target 17 into bytecode that is being built with JVM target 1.8. Specify proper '-jvm-target' option. ``` 1. https://kotlinlang.org/docs/maven.html#attributes-specific-to-jvm --- junit-jupiter-starter-maven-kotlin/pom.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/junit-jupiter-starter-maven-kotlin/pom.xml b/junit-jupiter-starter-maven-kotlin/pom.xml index 8e18aeba..e5d73b73 100644 --- a/junit-jupiter-starter-maven-kotlin/pom.xml +++ b/junit-jupiter-starter-maven-kotlin/pom.xml @@ -12,6 +12,7 @@ UTF-8 2.2.21 17 + ${maven.compiler.release}