opentelemetry-java-instrume.../instrumentation/apache-httpclient/apache-httpclient-2.0/javaagent/build.gradle.kts

32 lines
673 B
Plaintext

plugins {
id("otel.javaagent-instrumentation")
}
muzzle {
pass {
group.set("commons-httpclient")
module.set("commons-httpclient")
versions.set("[2.0,4.0)")
assertInverse.set(true)
}
}
dependencies {
library("commons-httpclient:commons-httpclient:2.0")
latestDepTestLibrary("commons-httpclient:commons-httpclient:3.+") // see apache-httpclient-4.0 module
}
tasks {
val testStableSemconv by registering(Test::class) {
jvmArgs("-Dotel.semconv-stability.opt-in=http")
}
withType<Test>().configureEach {
systemProperty("testLatestDeps", findProperty("testLatestDeps") as Boolean)
}
check {
dependsOn(testStableSemconv)
}
}