Skip to content

Commit 8aa7314

Browse files
committed
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
1 parent a9b9f0e commit 8aa7314

File tree

1 file changed

+1
-0
lines changed
  • junit-jupiter-starter-maven-kotlin

1 file changed

+1
-0
lines changed

junit-jupiter-starter-maven-kotlin/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1313
<kotlin.version>2.2.21</kotlin.version>
1414
<maven.compiler.release>17</maven.compiler.release>
15+
<kotlin.compiler.jvmTarget>${maven.compiler.release}</kotlin.compiler.jvmTarget>
1516
</properties>
1617

1718
<dependencyManagement>

0 commit comments

Comments
 (0)