mockito / mockito-kotlin

Using Mockito with Kotlin
MIT License
3.09k stars 198 forks source link

mockito-kotlin upgrade from 4.1.0 to 5.1.0 fails with latest Kotlin #494

Closed pwihmag closed 9 months ago

pwihmag commented 9 months ago

Cannot inline bytecode built with JVM target 11 into bytecode that is being built with JVM target 1.8. Please specify proper '-jvm-target' option

//run mvn versions:update-properties

//before

UTF-8 1.9.20-Beta2 official 1.7.3 4.13.2 4.1.0 4.10.0 3.11.0 7.0.0 3.6.0 3.1.2

//after

UTF-8 1.9.20-Beta2 official 1.7.3 4.13.2 5.1.0 5.2.0 3.11.0 7.0.0 3.6.0 3.1.2

//error in mvn clean install Cannot inline bytecode built with JVM target 11 into bytecode that is being built with JVM target 1.8. Please specify proper '-jvm-target' option

pwihmag commented 9 months ago

//The before section was - dont know why it disappered

UTF-8 1.9.20-Beta2 official 1.7.3 4.13.2 4.1.0 4.10.0 3.11.0 7.0.0 3.6.0 3.1.2
TimvdLippe commented 9 months ago

Mockito 5 no longer supports Java 8: https://github.com/mockito/mockito/releases/tag/v5.0.0