build.gradle.kts 799 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. plugins {
  2. id("otel.javaagent-instrumentation")
  3. }
  4. muzzle {
  5. fail {
  6. group.set("commons-httpclient")
  7. module.set("commons-httpclient")
  8. versions.set("[,4.0)")
  9. }
  10. pass {
  11. group.set("org.apache.httpcomponents")
  12. module.set("httpclient")
  13. versions.set("[4.0,)")
  14. assertInverse.set(true)
  15. }
  16. pass {
  17. // We want to support the dropwizard clients too.
  18. group.set("io.dropwizard")
  19. module.set("dropwizard-client")
  20. versions.set("(,3.0.0)")
  21. assertInverse.set(true)
  22. }
  23. }
  24. dependencies {
  25. library("org.apache.httpcomponents:httpclient:4.0")
  26. testCompileOnly("net.jcip:jcip-annotations:1.0")
  27. }
  28. tasks {
  29. val testStableSemconv by registering(Test::class) {
  30. jvmArgs("-Dotel.semconv-stability.opt-in=http")
  31. }
  32. check {
  33. dependsOn(testStableSemconv)
  34. }
  35. }