opentelemetry-java-instrume.../instrumentation/netty/netty-3.8/javaagent/build.gradle.kts

44 lines
1.1 KiB
Plaintext

plugins {
id("otel.javaagent-instrumentation")
}
muzzle {
pass {
group.set("io.netty")
module.set("netty")
versions.set("[3.8.0.Final,4)")
assertInverse.set(true)
}
fail {
group.set("io.netty")
module.set("netty-all")
versions.set("[,]")
excludeDependency("io.netty:netty-tcnative")
}
}
dependencies {
compileOnly("io.netty:netty:3.8.0.Final")
testLibrary("io.netty:netty:3.8.0.Final")
testLibrary("com.ning:async-http-client:1.8.0")
latestDepTestLibrary("io.netty:netty:3.10.+")
latestDepTestLibrary("com.ning:async-http-client:1.9.+")
}
// We need to force the dependency to the earliest supported version because other libraries declare newer versions.
if (!(findProperty("testLatestDeps") as Boolean)) {
configurations.configureEach {
if (!name.contains("muzzle")) {
resolutionStrategy {
eachDependency {
//specifying a fixed version for all libraries with io.netty' group
if (requested.group == "io.netty") {
useVersion("3.8.0.Final")
}
}
}
}
}
}