Exclude bootstrap dependencies from inst
MODIFY
instrumentation/build.gradle
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 {

MODIFY
javaagent-exporters/build.gradle
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'
+}

Exclude bootstrap dependencies from inst (#3432)