build.gradle.kts 718 B

12345678910111213141516171819202122232425262728293031323334
  1. plugins {
  2. id("otel.javaagent-instrumentation")
  3. }
  4. muzzle {
  5. pass {
  6. group.set("org.jodd")
  7. module.set("jodd-http")
  8. versions.set("[4.2.0,)")
  9. }
  10. }
  11. dependencies {
  12. // 4.2 is the first version with java 8, follow-redirects and HttpRequest#headerOverwrite method
  13. library("org.jodd:jodd-http:4.2.0")
  14. testImplementation(project(":instrumentation:jodd-http-4.2:javaagent"))
  15. testImplementation(project(":instrumentation-api-incubator"))
  16. }
  17. tasks {
  18. val testStableSemconv by registering(Test::class) {
  19. filter {
  20. includeTestsMatching("JoddHttpTest")
  21. }
  22. include("**/JoddHttpTest.*")
  23. jvmArgs("-Dotel.semconv-stability.opt-in=http")
  24. }
  25. check {
  26. dependsOn(testStableSemconv)
  27. }
  28. }