build.gradle.kts 786 B

123456789101112131415161718192021222324252627282930
  1. plugins {
  2. id("com.github.johnrengelman.shadow")
  3. id("otel.java-conventions")
  4. }
  5. group = "io.opentelemetry.javaagent.instrumentation"
  6. dependencies {
  7. implementation("com.couchbase.client:tracing-opentelemetry:1.0.0")
  8. }
  9. tasks {
  10. shadowJar {
  11. dependencies {
  12. // including only tracing-opentelemetry excludes its transitive dependencies
  13. include(dependency("com.couchbase.client:tracing-opentelemetry"))
  14. }
  15. relocate(
  16. "com.couchbase.client.tracing.opentelemetry",
  17. "io.opentelemetry.javaagent.instrumentation.couchbase.v3_2.shaded.com.couchbase.client.tracing.opentelemetry"
  18. )
  19. }
  20. val extractShadowJar by registering(Copy::class) {
  21. dependsOn(shadowJar)
  22. from(zipTree(shadowJar.get().archiveFile))
  23. into("build/extracted/shadow")
  24. }
  25. }