Fix shading

This commit is contained in:
Trask Stalnaker 2021-10-20 14:44:56 -07:00
parent 5d7c0dd95b
commit 2aad3cfe21
1 changed files with 2 additions and 0 deletions

View File

@ -15,6 +15,8 @@ tasks.withType<ShadowJar>().configureEach {
// rewrite dependencies calling Logger.getLogger
relocate("java.util.logging.Logger", "io.opentelemetry.javaagent.bootstrap.PatchLogger")
relocate("javax.annotation", "io.opentelemetry.javaagent.shaded.javax.annotation")
// prevents conflict with library instrumentation
relocate("io.opentelemetry.instrumentation", "io.opentelemetry.javaagent.shaded.instrumentation")