Limit version compatibility.
MODIFY
dd-java-agent/instrumentation/elasticsearch-rest-5/elasticsearch-rest-5.gradle
dd-java-agent/instrumentation/elasticsearch-rest-5/elasticsearch-rest-5.gradle
apply from: "${rootDir}/gradle/java.gradle"
+testJava8Minimum += '**/*Test.class'
+
apply plugin: 'org.unbroken-dome.test-sets'
testSets {

MODIFY
dd-java-agent/instrumentation/elasticsearch-transport-2/elasticsearch-transport-2.gradle
dd-java-agent/instrumentation/elasticsearch-transport-2/elasticsearch-transport-2.gradle
@@ -11,6 +11,8 @@ versionScan {
apply from: "${rootDir}/gradle/java.gradle"
+testJava8Only += '**/*Test.class'
+
apply plugin: 'org.unbroken-dome.test-sets'
testSets {

MODIFY
dd-java-agent/instrumentation/elasticsearch-transport-5/elasticsearch-transport-5.gradle
dd-java-agent/instrumentation/elasticsearch-transport-5/elasticsearch-transport-5.gradle
@@ -14,6 +14,8 @@ versionScan {
apply from: "${rootDir}/gradle/java.gradle"
+testJava8Minimum += '**/*Test.class'
+
apply plugin: 'org.unbroken-dome.test-sets'
testSets {

MODIFY
dd-java-agent/instrumentation/elasticsearch-transport-6/elasticsearch-transport-6.gradle
dd-java-agent/instrumentation/elasticsearch-transport-6/elasticsearch-transport-6.gradle
@@ -14,6 +14,8 @@ versionScan {
apply from: "${rootDir}/gradle/java.gradle"
+testJava8Minimum += '**/*Test.class'
+
apply plugin: 'org.unbroken-dome.test-sets'
testSets {

Limit version compatibility.