build.gradle.kts 673 B

12345678910111213141516171819202122232425262728293031
  1. plugins {
  2. id("otel.javaagent-instrumentation")
  3. }
  4. muzzle {
  5. pass {
  6. group.set("commons-httpclient")
  7. module.set("commons-httpclient")
  8. versions.set("[2.0,4.0)")
  9. assertInverse.set(true)
  10. }
  11. }
  12. dependencies {
  13. library("commons-httpclient:commons-httpclient:2.0")
  14. latestDepTestLibrary("commons-httpclient:commons-httpclient:3.+") // see apache-httpclient-4.0 module
  15. }
  16. tasks {
  17. val testStableSemconv by registering(Test::class) {
  18. jvmArgs("-Dotel.semconv-stability.opt-in=http")
  19. }
  20. withType<Test>().configureEach {
  21. systemProperty("testLatestDeps", findProperty("testLatestDeps") as Boolean)
  22. }
  23. check {
  24. dependsOn(testStableSemconv)
  25. }
  26. }