Skip to content

Commit

Permalink
Fix integration_tests/mockk compile error on Java 21
Browse files Browse the repository at this point in the history
Previously, when trying to run integration_tests/mockk on Java 21, there
would be an error message:

> Unknown Kotlin JVM target: 21

Update the compile options to target JVM 1.8 bytecode.
  • Loading branch information
hoisie committed Oct 17, 2023
1 parent d823f08 commit 8de2eb6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion integration_tests/mockk/build.gradle
@@ -1,3 +1,4 @@
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.robolectric.gradle.RoboJavaModulePlugin

apply plugin: RoboJavaModulePlugin
Expand All @@ -12,8 +13,12 @@ spotless {
}
}

compileKotlin {
compilerOptions.jvmTarget = JvmTarget.JVM_1_8
}

compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
compilerOptions.jvmTarget = JvmTarget.JVM_1_8
}

dependencies {
Expand Down

0 comments on commit 8de2eb6

Please sign in to comment.