build.gradle.kts 708 B

123456789101112131415161718192021222324252627
  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:0.3.3")
  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("com.couchbase.client.tracing.opentelemetry", "com.couchbase.v3_1.client.tracing.opentelemetry")
  16. }
  17. val extractShadowJar by registering(Copy::class) {
  18. dependsOn(shadowJar)
  19. from(zipTree(shadowJar.get().archiveFile))
  20. into("build/extracted/shadow")
  21. }
  22. }