-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Spring framework will not fully support Kotlin 2.x until version 7.0 (projected to be released in Q4 2025) and as a result many users are sticking with Kotlin 1.9.x until the Spring 7.0 release
Because this library is compiled with Kotlin 2.1, it cannot be used with older versions of Kotlin and results in this error:
.m2/repository/dev/hsbrysk/caffeine-coroutines/2.0.1/caffeine-coroutines-2.0.1.jar!/META-INF/caffeine-coroutines.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.1.0, expected version is 1.9.0.
Are there any plans to compile it with a lower Kotlin version for wider compatibility?
I tested the downgrade and all it requires is a downgrade of kotlin-coroutines, and some extra casting which is not handled by smart casting in Kotlin <2
For additional context here is a similar issue in the openai-java SDK: openai/openai-java#320