//apply plugin: 'version-scan' // //versionScan { // group = "org.elasticsearch.client" //// module = "transport" // module = "rest" // versions = "[5.0,)" // legacyGroup = "org.elasticsearch" // legacyModule = "elasticsearch" // scanDependencies = true // verifyPresent = [ // "org.elasticsearch.percolator.TransportMultiPercolateAction": null, // ] //} apply from: "${rootDir}/gradle/java.gradle" testJava8Minimum += '**/*Test.class' apply plugin: 'org.unbroken-dome.test-sets' testSets { latestDepTest } dependencies { compileOnly group: 'org.elasticsearch.client', name: 'rest', version: '5.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-transport-5') testCompile project(':dd-java-agent:instrumentation:elasticsearch-transport-6') // 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.3') // TODO: add netty instrumentation when that is complete. 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' testCompile group: 'org.elasticsearch.client', name: 'rest', version: '5.0.0' testCompile group: 'org.elasticsearch', name: 'elasticsearch', version: '5.0.0' testCompile group: 'org.elasticsearch.plugin', name: 'transport-netty3-client', version: '5.0.0' /* We know that 6.3.+ Doesn't work because they've reworked relevant code. See https://github.com/elastic/elasticsearch/commit/0be443c5bbd4c7eb5776740d8fb7117224124cce#diff-d5bb3520f960a753d8f8a3a2686dfd6b Lock on 6.2.+ to fix tests. */ latestDepTestCompile group: 'org.elasticsearch.client', name: 'elasticsearch-rest-client', version: '6.2.+' latestDepTestCompile group: 'org.elasticsearch', name: 'elasticsearch', version: '6.2.+' latestDepTestCompile group: 'org.elasticsearch.plugin', name: 'transport-netty4-client', version: '6.2.+' } configurations.latestDepTestCompile { exclude group: "org.elasticsearch.client", module: "rest" }