보통 kafka clients가 dependency가 아래 두 종류를 사용 할 것이다.
// https://mvnrepository.com/artifact/org.apache.kafka/kafka-clients
implementation("org.apache.kafka:kafka-clients:7.2.0-ccs")
// https://mvnrepository.com/artifact/org.apache.kafka/kafka-clients
implementation("org.apache.kafka:kafka-clients:3.5.1")
그런데, 자꾸 ccs 버전을 쓰게 되면, 다운로드가 안되는 경우가 있다.
그럴때는 build.gradle.kts 파일의 repositories 블록을 확인 해보자.
repositories {
mavenCentral()
gradlePluginPortal()
maven(url = "https://plugins.gradle.org/m2/")
maven(url = "https://repo.spring.io/snapshot")
maven(url = "https://repo.spring.io/milestone")
maven(url = "https://packages.confluent.io/maven/")
}
confluent maven 주소를 추가 해주면, 정상적으로 다운로드가 잘 된다.
반응형
'프로그래밍 > kafka' 카테고리의 다른 글
| Kafka Transaction - Lag 1 Gap issue (0) | 2026.06.11 |
|---|