From 48ae6311b00cfe662fae4e3c90b2261f62e58138 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrzej=20Kobyli=C5=84ski?= Date: Sun, 17 May 2026 09:58:49 +0200 Subject: [PATCH] fix(kafka): expose kafka-clients and okapi-core as api deps KafkaMessageDeliverer's public constructor takes Producer, so kafka-clients types appear in okapi-kafka's public API. Same for okapi-core types returned from public methods. Both need api scope so consumers don't have to add transitive deps manually. --- okapi-kafka/build.gradle.kts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/okapi-kafka/build.gradle.kts b/okapi-kafka/build.gradle.kts index 3318514..aa4133a 100644 --- a/okapi-kafka/build.gradle.kts +++ b/okapi-kafka/build.gradle.kts @@ -6,12 +6,11 @@ plugins { description = "Apache Kafka message delivery" dependencies { - implementation(project(":okapi-core")) + api(project(":okapi-core")) implementation(libs.jacksonModuleKotlin) implementation(libs.jacksonDatatypeJsr310) - compileOnly(libs.kafkaClients) + api(libs.kafkaClients) - testImplementation(libs.kafkaClients) testImplementation(libs.kotestRunnerJunit5) testImplementation(libs.kotestAssertionsCore) }