From bb701d817c1680c71671f5f12c71c8212b42d03f Mon Sep 17 00:00:00 2001 From: bidetofevil Date: Wed, 26 Jun 2024 15:57:05 -0700 Subject: [PATCH] Consume OTel version from BOM --- embrace-android-sdk/build.gradle.kts | 1 + gradle/libs.versions.toml | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/embrace-android-sdk/build.gradle.kts b/embrace-android-sdk/build.gradle.kts index 0efe0099c0..70a94802af 100644 --- a/embrace-android-sdk/build.gradle.kts +++ b/embrace-android-sdk/build.gradle.kts @@ -71,6 +71,7 @@ kover { } dependencies { + implementation(platform(libs.opentelemetry.bom)) implementation(libs.lifecycle.common.java8) implementation(libs.lifecycle.process) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 70a33d2f8b..8aa5ec4f6f 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -30,9 +30,10 @@ lifecycle-extensions = { group = "androidx.lifecycle", name = "lifecycle-extensi moshi = { group = "com.squareup.moshi", name = "moshi", version.ref = "moshi" } moshi-kotlin-codegen = { group = "com.squareup.moshi", name = "moshi-kotlin-codegen", version.ref = "moshi" } -opentelemetry-api = { group = "io.opentelemetry", name = "opentelemetry-api", version.ref = "openTelemetryCore" } -opentelemetry-sdk = { group = "io.opentelemetry", name = "opentelemetry-sdk", version.ref = "openTelemetryCore" } -opentelemetry-context = { group = "io.opentelemetry", name = "opentelemetry-context", version.ref = "openTelemetryCore" } +opentelemetry-bom = { group = "io.opentelemetry", name = "opentelemetry-bom", version.ref = "openTelemetryCore" } +opentelemetry-api = { group = "io.opentelemetry", name = "opentelemetry-api"} +opentelemetry-sdk = { group = "io.opentelemetry", name = "opentelemetry-sdk"} +opentelemetry-context = { group = "io.opentelemetry", name = "opentelemetry-context"} opentelemetry-semconv = { group = "io.opentelemetry.semconv", name = "opentelemetry-semconv", version.ref = "openTelementrySemConv" } opentelemetry-semconv-incubating = { group = "io.opentelemetry.semconv", name = "opentelemetry-semconv-incubating", version.ref = "openTelementrySemConv" } mockk = { group = "io.mockk", name = "mockk", version.ref = "mockk" }