build.gradle.kts 885 B

1234567891011121314151617181920212223
  1. plugins {
  2. id("com.github.johnrengelman.shadow")
  3. id("otel.java-conventions")
  4. }
  5. description = "opentelemetry-instrumentation-annotations shaded for internal javaagent usage"
  6. group = "io.opentelemetry.javaagent"
  7. dependencies {
  8. implementation("io.opentelemetry.instrumentation:opentelemetry-instrumentation-annotations")
  9. }
  10. // OpenTelemetry Instrumentation Annotations shaded so that it can be used in instrumentation of
  11. // OpenTelemetry Instrumentation Annotations itself,
  12. // and then its usage can be unshaded after OpenTelemetry Instrumentation Annotations is shaded
  13. // (see more explanation in opentelemetry-api-1.0.gradle)
  14. tasks {
  15. shadowJar {
  16. relocate("io.opentelemetry.instrumentation.annotations", "application.io.opentelemetry.instrumentation.annotations")
  17. relocate("io.opentelemetry.api.trace.SpanKind", "application.io.opentelemetry.api.trace.SpanKind")
  18. }
  19. }