mockito / mockito-kotlin

Using Mockito with Kotlin
MIT License
3.11k stars 202 forks source link

#488: Change kotlinOptions.jvmTarget to VERSION_1_8 #493

Closed naitaku closed 1 year ago

naitaku commented 1 year ago

This commit addresses issue #488, where Android projects were encountering a build failure with the error message: "Cannot inline bytecode built with JVM target 11." The issue was resolved by adjusting the 'jvmTarget' to 'VERSION_1_8,' ensuring compatibility with Android projects.

TimvdLippe commented 1 year ago

Mockito 5 no longer supports Java 8. Therefore, I don't think we should do that for mockito-kotlin either, should we?

naitaku commented 1 year ago

My understanding is that mockito-core 5.x no longer supports Java 8, and 'jvmTarget' should be set to 'VERSION_11.' I'll close this PR.