build.gradle.kts 890 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. plugins {
  2. id("otel.javaagent-instrumentation")
  3. }
  4. muzzle {
  5. pass {
  6. group.set("com.ning")
  7. module.set("async-http-client")
  8. versions.set("[1.9.0,)")
  9. assertInverse.set(true)
  10. }
  11. }
  12. dependencies {
  13. library("com.ning:async-http-client:1.9.0")
  14. compileOnly("com.google.auto.value:auto-value-annotations")
  15. annotationProcessor("com.google.auto.value:auto-value")
  16. testInstrumentation(project(":instrumentation:netty:netty-3.8:javaagent"))
  17. }
  18. tasks {
  19. val testStableSemconv by registering(Test::class) {
  20. jvmArgs("-Dotel.semconv-stability.opt-in=http")
  21. }
  22. withType<Test>().configureEach {
  23. // required on jdk17
  24. jvmArgs("--add-exports=java.base/sun.security.util=ALL-UNNAMED")
  25. jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")
  26. systemProperty("testLatestDeps", findProperty("testLatestDeps") as Boolean)
  27. }
  28. check {
  29. dependsOn(testStableSemconv)
  30. }
  31. }