2020-09-17 17:45:12 -05:00
|
|
|
import org.elasticsearch.gradle.util.GradleUtils
|
|
|
|
|
2020-09-09 12:16:28 +01:00
|
|
|
apply plugin: 'elasticsearch.esplugin'
|
|
|
|
apply plugin: 'elasticsearch.java-rest-test'
|
|
|
|
|
|
|
|
esplugin {
|
|
|
|
description 'Deprecated query plugin'
|
|
|
|
classname 'org.elasticsearch.xpack.deprecation.TestDeprecationPlugin'
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
javaRestTestImplementation("com.fasterxml.jackson.core:jackson-annotations:${versions.jackson}")
|
|
|
|
javaRestTestImplementation("com.fasterxml.jackson.core:jackson-databind:${versions.jackson}")
|
|
|
|
}
|
|
|
|
|
2020-09-17 17:45:12 -05:00
|
|
|
// let the javaRestTest see the classpath of main
|
|
|
|
GradleUtils.extendSourceSet(project, "main", "javaRestTest", javaRestTest)
|
|
|
|
|
|
|
|
|
2020-09-09 12:16:28 +01:00
|
|
|
restResources {
|
|
|
|
restApi {
|
|
|
|
includeCore '_common', 'indices', 'index'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
testClusters.all {
|
|
|
|
testDistribution = 'DEFAULT'
|
|
|
|
setting 'xpack.security.enabled', 'false'
|
|
|
|
}
|
|
|
|
|
|
|
|
test.enabled = false
|