From 9f6d290f036efb34e75a524caf3f93f0f8145176 Mon Sep 17 00:00:00 2001 From: Joris Borgdorff Date: Wed, 27 Sep 2023 17:27:17 +0200 Subject: [PATCH] Fix snyk test --- buildSrc/src/main/kotlin/Versions.kt | 2 ++ radar-commons-server/build.gradle.kts | 4 +++- radar-commons-testing/build.gradle.kts | 4 +++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/buildSrc/src/main/kotlin/Versions.kt b/buildSrc/src/main/kotlin/Versions.kt index e9a8f1ba..e3313772 100644 --- a/buildSrc/src/main/kotlin/Versions.kt +++ b/buildSrc/src/main/kotlin/Versions.kt @@ -1,3 +1,4 @@ +@Suppress("ConstPropertyName", "MemberVisibilityCanBePrivate") object Versions { const val project = "1.1.1" @@ -25,4 +26,5 @@ object Versions { const val ktor = "2.3.4" const val coroutines = "1.7.3" const val commonsCompress = "1.24.0" + const val snappy = "1.1.10.5" } diff --git a/radar-commons-server/build.gradle.kts b/radar-commons-server/build.gradle.kts index d6c2f83c..b8b03ea6 100644 --- a/radar-commons-server/build.gradle.kts +++ b/radar-commons-server/build.gradle.kts @@ -41,7 +41,9 @@ dependencies { api("org.apache.avro:avro:${Versions.avro}") - implementation("org.apache.kafka:kafka-clients:${Versions.kafka}") + implementation("org.apache.kafka:kafka-clients:${Versions.kafka}") { + implementation("org.xerial.snappy:snappy-java:${Versions.snappy}") + } testImplementation("org.mockito:mockito-core:${Versions.mockito}") // Direct producer uses KafkaAvroSerializer if initialized diff --git a/radar-commons-testing/build.gradle.kts b/radar-commons-testing/build.gradle.kts index a1513bcc..4c14246e 100644 --- a/radar-commons-testing/build.gradle.kts +++ b/radar-commons-testing/build.gradle.kts @@ -47,7 +47,9 @@ dependencies { implementation(platform("com.fasterxml.jackson:jackson-bom:${Versions.jackson}")) implementation("com.fasterxml.jackson.core:jackson-databind") - implementation("org.apache.kafka:kafka-clients:${Versions.kafka}") + implementation("org.apache.kafka:kafka-clients:${Versions.kafka}") { + implementation("org.xerial.snappy:snappy-java:${Versions.snappy}") + } implementation("io.confluent:kafka-avro-serializer:${Versions.confluent}") implementation(platform("io.ktor:ktor-bom:${Versions.ktor}"))