build.gradle.kts 787 B

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