2018-01-22 05:09:04 -05:00
|
|
|
apply plugin: 'elasticsearch.esplugin'
|
2020-05-12 00:06:04 -04:00
|
|
|
apply plugin: 'elasticsearch.internal-cluster-test'
|
2018-01-22 05:09:04 -05:00
|
|
|
esplugin {
|
2019-11-14 06:01:23 -05:00
|
|
|
name 'x-pack-ccr'
|
|
|
|
description 'Elasticsearch Expanded Pack Plugin - CCR'
|
|
|
|
classname 'org.elasticsearch.xpack.ccr.Ccr'
|
|
|
|
hasNativeController false
|
|
|
|
requiresKeystore true
|
|
|
|
extendedPlugins = ['x-pack-core']
|
2018-01-22 05:09:04 -05:00
|
|
|
}
|
|
|
|
archivesBaseName = 'x-pack-ccr'
|
|
|
|
|
2019-03-01 08:48:26 -05:00
|
|
|
// Integration Test classes that cannot run with the security manager
|
2019-11-14 06:01:23 -05:00
|
|
|
String[] noSecurityManagerITClasses = ["**/CloseFollowerIndexIT.class"]
|
2019-03-01 08:48:26 -05:00
|
|
|
|
2020-05-12 00:06:04 -04:00
|
|
|
tasks.register('internalClusterTestNoSecurityManager', Test) {
|
|
|
|
testClassesDirs = sourceSets.internalClusterTest.output.classesDirs
|
|
|
|
classpath = sourceSets.internalClusterTest.runtimeClasspath
|
2019-11-14 06:01:23 -05:00
|
|
|
include noSecurityManagerITClasses
|
|
|
|
systemProperty 'tests.security.manager', 'false'
|
2019-04-09 14:52:50 -04:00
|
|
|
}
|
2020-05-12 00:06:04 -04:00
|
|
|
check.dependsOn 'internalClusterTestNoSecurityManager'
|
2019-04-09 14:52:50 -04:00
|
|
|
|
2020-05-12 00:06:04 -04:00
|
|
|
tasks.named('internalClusterTest').configure {
|
2019-11-14 06:01:23 -05:00
|
|
|
exclude noSecurityManagerITClasses
|
2018-01-25 08:18:34 -05:00
|
|
|
}
|
2018-04-13 13:11:28 -04:00
|
|
|
|
2018-08-21 12:51:55 -04:00
|
|
|
// add all sub-projects of the qa sub-project
|
|
|
|
gradle.projectsEvaluated {
|
2019-11-14 06:01:23 -05:00
|
|
|
project.subprojects
|
|
|
|
.find { it.path == project.path + ":qa" }
|
|
|
|
.subprojects
|
|
|
|
.findAll { it.path.startsWith(project.path + ":qa") }
|
|
|
|
.each { check.dependsOn it.check }
|
2018-08-21 12:51:55 -04:00
|
|
|
}
|
2018-01-25 08:18:34 -05:00
|
|
|
|
2018-01-22 05:09:04 -05:00
|
|
|
dependencies {
|
2019-11-14 06:01:23 -05:00
|
|
|
compileOnly project(":server")
|
2018-07-24 22:28:17 -04:00
|
|
|
|
2019-11-14 06:01:23 -05:00
|
|
|
compileOnly project(path: xpackModule('core'), configuration: 'default')
|
2020-06-14 16:30:44 -04:00
|
|
|
testImplementation project(path: xpackModule('core'), configuration: 'testArtifacts')
|
|
|
|
testImplementation project(path: xpackModule('monitoring'), configuration: 'testArtifacts')
|
2018-01-22 05:09:04 -05:00
|
|
|
}
|
|
|
|
|
2019-01-08 06:39:03 -05:00
|
|
|
testingConventions.naming {
|
2019-11-14 06:01:23 -05:00
|
|
|
IT {
|
|
|
|
baseClass "org.elasticsearch.xpack.CcrIntegTestCase"
|
|
|
|
}
|
2019-01-08 06:39:03 -05:00
|
|
|
}
|