Skip to content

Incompatible with Kotlin 1.9.x #77

@artdk

Description

@artdk

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions