MSA & Arcitecture

spring-cloud-function-context.kotlin_moduleModule was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.1.0, expected version is 1.9.0.

65살까지 코딩 2025. 1. 27. 13:24
728x90
반응형

 

Spring Cloud Bus를 위해서 cloud bus amp를 추가했는데 해당 라이브러리가

implementation("org.springframework.cloud:spring-cloud-starter-bus-amqp")

function context 라이브러리를 가져온다.

"org.springframework.cloud:spring-cloud-function-context


해당 라이브러리에 kotiln 버전을 제대로 인식하지 못하는 버그가 있었다.
https://github.com/spring-cloud/spring-cloud-function/issues/1218

 

Kotlin compilation error with spring-cloud-function 4.2.0- · Issue #1218 · spring-cloud/spring-cloud-function

Describe the bug Kotlin compilation error with spring-cloud-function 4.2.0 Versions of the framework: Spring Boot 3.4.0 Spring Cloud: 2024.0.0 Kotlin: 1.9.25 Java: 17 Sample To reproduce: Generate ...

github.com

 

implementation("org.springframework.cloud:spring-cloud-function-context:4.2.1")

을 명시적으로 추가함으로 해결할 수 있었다.

 

TMI

이상한건 

implementation("org.springframework.cloud:spring-cloud-starter-bus-amqp")

만 단독으로 사용하는 프로젝트에서는 문제가 딱히 없다.. spring-cloud dependecy들 사이 어딘가에서 알수없는 충돌이 발생하나보다..

728x90
반응형