build.gradle.kts 647 B

12345678910111213141516171819202122232425262728
  1. plugins {
  2. id("otel.javaagent-instrumentation")
  3. }
  4. muzzle {
  5. pass {
  6. group.set("org.apache.httpcomponents")
  7. module.set("httpasyncclient")
  8. // 4.0 and 4.0.1 don't copy over the traceparent (etc) http headers on redirect
  9. versions.set("[4.1,)")
  10. // TODO implement a muzzle check so that 4.0.x (at least 4.0 and 4.0.1) do not get applied
  11. // and then bring back assertInverse
  12. }
  13. }
  14. dependencies {
  15. library("org.apache.httpcomponents:httpasyncclient:4.1")
  16. }
  17. tasks {
  18. val testStableSemconv by registering(Test::class) {
  19. jvmArgs("-Dotel.semconv-stability.opt-in=http")
  20. }
  21. check {
  22. dependsOn(testStableSemconv)
  23. }
  24. }