42 lines
1.4 KiB
Groovy
42 lines
1.4 KiB
Groovy
// Set properties before any plugins get loaded
|
|
ext {
|
|
minJavaVersionForTests = JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
apply from: "$rootDir/gradle/instrumentation.gradle"
|
|
|
|
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
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
library group: 'org.elasticsearch.client', name: 'transport', version: '6.0.0'
|
|
|
|
implementation project(':instrumentation:elasticsearch:elasticsearch-transport-common')
|
|
|
|
// Ensure no cross interference
|
|
testImplementation project(':instrumentation:elasticsearch:elasticsearch-rest-5.0')
|
|
testImplementation project(':instrumentation:apache-httpasyncclient-4.0')
|
|
testImplementation project(':instrumentation:netty:netty-4.1')
|
|
|
|
testLibrary group: 'org.elasticsearch.plugin', name: 'transport-netty4-client', version: '6.0.0'
|
|
|
|
testImplementation group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.11.0'
|
|
testImplementation 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.
|
|
latestDepTestLibrary group: 'org.elasticsearch.plugin', name: 'transport-netty4-client', version: '(6.1,6.5)'
|
|
latestDepTestLibrary group: 'org.elasticsearch.client', name: 'transport', version: '(6.1,6.5)'
|
|
}
|