From 2f16cb0f48eca4453e3e894b3d45a3aa09e6dcc0 Mon Sep 17 00:00:00 2001 From: mjkwiatkowski Date: Mon, 16 Feb 2026 15:18:21 +0100 Subject: feat: opendc -> kafka -> postgresql works; added protobuf encoding --- opendc-common/build.gradle.kts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'opendc-common/build.gradle.kts') diff --git a/opendc-common/build.gradle.kts b/opendc-common/build.gradle.kts index 0094730b..4d9e8b54 100644 --- a/opendc-common/build.gradle.kts +++ b/opendc-common/build.gradle.kts @@ -1,3 +1,4 @@ + /* * Copyright (c) 2020 AtLarge Research * @@ -29,6 +30,11 @@ plugins { kotlin("plugin.serialization") version "1.9.22" } +repositories { + maven(url = "https://packages.confluent.io/maven/") +} + + val serializationVersion = "1.6.0" dependencies { @@ -45,4 +51,17 @@ dependencies { api(libs.kotlin.logging) testImplementation(projects.opendcSimulator.opendcSimulatorCore) + + // Source: https://mvnrepository.com/artifact/org.apache.kafka/kafka-clients + implementation("org.apache.kafka:kafka-clients:4.1.1") + implementation(libs.jackson.core) + + // Source: https://mvnrepository.com/artifact/com.google.protobuf/protobuf-java + // @Mateusz crucial this is an _api_ and not _implementation_ + api("com.google.protobuf:protobuf-java:4.33.5") + + // Source: https://mvnrepository.com/artifact/io.confluent/kafka-protobuf-serializer + implementation("io.confluent:kafka-protobuf-serializer:8.1.1") } + + -- cgit v1.2.3