Skip to content

Kotlin compilation error in module spring-cloud-function-context after upgrading to Spring Cloud 2023.0.4 #3051

Closed
@beytularedzheb

Description

@beytularedzheb

Description
After upgrading the spring cloud dependencies from 2023.0.3 to 2023.0.4 I started getting below compilation error in few projects of mine which use spring cloud stream.

[ERROR] Failed to execute goal org.jetbrains.kotlin:kotlin-maven-plugin:1.9.25:compile (compile) on project xxx: Compilation failure
[ERROR] /Users/xxx/.m2/repository/org/springframework/cloud/spring-cloud-function-context/4.1.4/spring-cloud-function-context-4.1.4.jar!/META-INF/spring-cloud-function-context.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.

Given that the recommended kotlin version in spring boot 3.3.X is 1.9.25 and spring cloud 2023.0.4 is based on spring boot 3.2.12 and 3.3.6 I think it should not require kotlin 2.1.0 which was released just a few days ago (27.11.2024).

Version of the framework

  • Spring Boot 3.3.6
  • Spring Cloud: 2023.0.4
  • Kotlin: 1.9.25
  • Java: 17

Expected behavior
No compilation error

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions