From c781f1778568b96370e66ff7d0b86e8eece6fdc3 Mon Sep 17 00:00:00 2001 From: Lauri Tulmin Date: Tue, 29 Jun 2021 13:21:39 +0300 Subject: [PATCH] Exclude bootstrap dependencies from inst --- instrumentation/build.gradle | 2 ++ javaagent-exporters/build.gradle | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/instrumentation/build.gradle b/instrumentation/build.gradle index eb3e6d70bf33..0b6474bb44be 100644 --- a/instrumentation/build.gradle +++ b/instrumentation/build.gradle @@ -33,6 +33,8 @@ configurations { // exclude bootstrap dependencies from shadowJar implementation.exclude group: 'org.slf4j' implementation.exclude group: 'io.opentelemetry', module: 'opentelemetry-api' + implementation.exclude group: 'io.opentelemetry', module: 'opentelemetry-api-metrics' + implementation.exclude group: 'io.opentelemetry', module: 'opentelemetry-semconv' } shadowJar { diff --git a/javaagent-exporters/build.gradle b/javaagent-exporters/build.gradle index d9b5c34b85cf..665645802757 100644 --- a/javaagent-exporters/build.gradle +++ b/javaagent-exporters/build.gradle @@ -19,3 +19,10 @@ dependencies { // TODO(anuraaga): Move version to dependency management implementation "io.grpc:grpc-netty-shaded:1.38.0" } + +configurations { + // exclude bootstrap dependencies from shadowJar + implementation.exclude group: 'io.opentelemetry', module: 'opentelemetry-api' + implementation.exclude group: 'io.opentelemetry', module: 'opentelemetry-api-metrics' + implementation.exclude group: 'io.opentelemetry', module: 'opentelemetry-semconv' +}