42 lines
1.1 KiB
Groovy
42 lines
1.1 KiB
Groovy
plugins {
|
|
id("otel.javaagent-instrumentation")
|
|
}
|
|
|
|
muzzle {
|
|
pass {
|
|
group = "org.asynchttpclient"
|
|
module = "async-http-client"
|
|
versions = "[2.0.0,)"
|
|
assertInverse = true
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
library "org.asynchttpclient:async-http-client:2.0.0"
|
|
|
|
compileOnly "com.google.auto.value:auto-value-annotations"
|
|
annotationProcessor "com.google.auto.value:auto-value"
|
|
|
|
testInstrumentation project(':instrumentation:netty:netty-4.0:javaagent')
|
|
}
|
|
|
|
otelJava {
|
|
//AHC uses Unsafe and so does not run on later java version
|
|
maxJavaVersionForTests = JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
// async-http-client 2.0.0 does not work with Netty versions newer than this due to referencing an
|
|
// internal file.
|
|
if (!testLatestDeps) {
|
|
configurations.each {
|
|
it.resolutionStrategy {
|
|
eachDependency { DependencyResolveDetails details ->
|
|
//specifying a fixed version for all libraries with io.netty' group
|
|
if (details.requested.group == 'io.netty' && details.requested.name != "netty-bom") {
|
|
details.useVersion "4.0.34.Final"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|