50 lines
1.8 KiB
Groovy
50 lines
1.8 KiB
Groovy
apply from: "$rootDir/gradle/instrumentation.gradle"
|
|
|
|
muzzle {
|
|
pass {
|
|
group = "org.elasticsearch.client"
|
|
module = "transport"
|
|
versions = "[5.3.0,6.0.0)"
|
|
// version 7.11.0 depends on org.elasticsearch:elasticsearch:7.11.0 which depends on
|
|
// org.elasticsearch:elasticsearch-plugin-classloader:7.11.0 which does not exist
|
|
skip('7.11.0')
|
|
assertInverse = true
|
|
}
|
|
pass {
|
|
group = "org.elasticsearch"
|
|
module = "elasticsearch"
|
|
versions = "[5.3.0,6.0.0)"
|
|
// version 7.11.0 depends on org.elasticsearch:elasticsearch-plugin-classloader:7.11.0
|
|
// which does not exist
|
|
skip('7.11.0')
|
|
assertInverse = true
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
library "org.elasticsearch.client:transport:5.3.0"
|
|
|
|
implementation project(':instrumentation:elasticsearch:elasticsearch-transport-common:library')
|
|
|
|
testInstrumentation project(':instrumentation:apache-httpasyncclient-4.1:javaagent')
|
|
testInstrumentation project(':instrumentation:netty:netty-4.1:javaagent')
|
|
testInstrumentation project(':instrumentation:spring:spring-data-1.8:javaagent')
|
|
|
|
testImplementation "org.apache.logging.log4j:log4j-core:2.11.0"
|
|
testImplementation "org.apache.logging.log4j:log4j-api:2.11.0"
|
|
|
|
testLibrary "org.elasticsearch.plugin:transport-netty3-client:5.3.0"
|
|
|
|
// Unfortunately this will bump the transport version up to 5.5.0.
|
|
testLibrary "org.springframework.data:spring-data-elasticsearch:3.0.0.RELEASE"
|
|
|
|
latestDepTestLibrary "org.elasticsearch.plugin:transport-netty3-client:5.+"
|
|
latestDepTestLibrary "org.elasticsearch.client:transport:5.+"
|
|
latestDepTestLibrary "org.springframework.data:spring-data-elasticsearch:3.0.+"
|
|
}
|
|
|
|
tasks.withType(Test).configureEach {
|
|
// TODO run tests both with and without experimental span attributes
|
|
jvmArgs "-Dotel.instrumentation.elasticsearch.experimental-span-attributes=true"
|
|
}
|