60 lines
2.0 KiB
Groovy
60 lines
2.0 KiB
Groovy
// Set properties before any plugins get loaded
|
|
ext {
|
|
minJavaVersionForTests = JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
muzzle {
|
|
pass {
|
|
group = "org.elasticsearch.client"
|
|
module = "transport"
|
|
versions = "[6.0.0,)"
|
|
assertInverse = true
|
|
}
|
|
pass {
|
|
group = "org.elasticsearch"
|
|
module = "elasticsearch"
|
|
versions = "[6.0.0,)"
|
|
assertInverse = true
|
|
}
|
|
}
|
|
|
|
apply from: "${rootDir}/gradle/java.gradle"
|
|
|
|
apply plugin: 'org.unbroken-dome.test-sets'
|
|
|
|
testSets {
|
|
latestDepTest {
|
|
dirName = 'test'
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
compileOnly group: 'org.elasticsearch.client', name: 'transport', version: '6.0.0'
|
|
|
|
compile project(':dd-java-agent:agent-tooling')
|
|
|
|
compile deps.bytebuddy
|
|
compile deps.opentracing
|
|
annotationProcessor deps.autoservice
|
|
implementation deps.autoservice
|
|
|
|
testCompile project(':dd-java-agent:testing')
|
|
// Ensure no cross interference
|
|
testCompile project(':dd-java-agent:instrumentation:elasticsearch-rest-5')
|
|
// Include httpclient instrumentation for testing because it is a dependency for elasticsearch-rest-client.
|
|
// It doesn't actually work though. They use HttpAsyncClient, which isn't currently instrumented.
|
|
// TODO: add HttpAsyncClient instrumentation when that is complete.
|
|
testCompile project(':dd-java-agent:instrumentation:apache-httpclient-4')
|
|
// TODO: add netty instrumentation when that is complete.
|
|
|
|
testCompile group: 'org.elasticsearch.plugin', name: 'transport-netty4-client', version: '6.0.0'
|
|
testCompile group: 'org.elasticsearch.client', name: 'transport', version: '6.0.0'
|
|
|
|
testCompile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.11.0'
|
|
testCompile group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.11.0'
|
|
|
|
// Limit tests to <6.5 as the latest versions have a breaking change for the tests.
|
|
latestDepTestCompile group: 'org.elasticsearch.plugin', name: 'transport-netty4-client', version: '(6.1,6.5)'
|
|
latestDepTestCompile group: 'org.elasticsearch.client', name: 'transport', version: '(6.1,6.5)'
|
|
}
|