opentelemetry-java-instrume.../instrumentation/elasticsearch/elasticsearch-transport-6.0/elasticsearch-transport-6.0...

50 lines
1.6 KiB
Groovy

// Set properties before any plugins get loaded
ext {
minJavaVersionForTests = JavaVersion.VERSION_1_8
}
apply from: "${rootDir}/gradle/instrumentation.gradle"
apply plugin: 'org.unbroken-dome.test-sets'
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
}
}
testSets {
latestDepTest {
dirName = 'test'
}
}
dependencies {
compileOnly group: 'org.elasticsearch.client', name: 'transport', version: '6.0.0'
compile project(':instrumentation:elasticsearch:elasticsearch-common')
// Ensure no cross interference
testCompile project(':instrumentation:elasticsearch:elasticsearch-rest-5.0')
testCompile project(':instrumentation:apache-httpasyncclient-4.0')
testCompile project(':instrumentation:netty:netty-4.1')
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)'
}