공부 흔적남기기

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. 본문

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
반응형

'MSA & Arcitecture' 카테고리의 다른 글

MSA란 -마틴 파울러 아티클 읽기  (0) 2025.02.05
Spring Cloud를 이용한 MSA(2)  (0) 2025.01.30
Spring Cloud를 이용한 MSA(1)  (0) 2025.01.27
안정해시(해시링)  (0) 2025.01.19
도메인 모델 시작하기  (0) 2024.01.17