2018-04-25 08:03:29 +02:00
|
|
|
evaluationDependsOn(xpackModule('core'))
|
2018-01-22 15:07:20 -05:00
|
|
|
|
2018-01-22 11:09:04 +01:00
|
|
|
apply plugin: 'elasticsearch.esplugin'
|
|
|
|
esplugin {
|
2019-11-14 11:01:23 +00: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 11:09:04 +01:00
|
|
|
}
|
|
|
|
archivesBaseName = 'x-pack-ccr'
|
|
|
|
|
2018-09-15 10:18:59 -04:00
|
|
|
integTest.enabled = false
|
|
|
|
|
2019-03-01 14:48:26 +01:00
|
|
|
// Integration Test classes that cannot run with the security manager
|
2019-11-14 11:01:23 +00:00
|
|
|
String[] noSecurityManagerITClasses = ["**/CloseFollowerIndexIT.class"]
|
2019-03-01 14:48:26 +01:00
|
|
|
|
2019-04-09 11:52:50 -07:00
|
|
|
task internalClusterTestNoSecurityManager(type: Test) {
|
2019-11-14 11:01:23 +00:00
|
|
|
description = 'Java fantasy integration tests with no security manager'
|
|
|
|
|
|
|
|
include noSecurityManagerITClasses
|
|
|
|
systemProperty 'es.set.netty.runtime.available.processors', 'false'
|
|
|
|
systemProperty 'tests.security.manager', 'false'
|
2019-04-09 11:52:50 -07:00
|
|
|
}
|
|
|
|
|
2018-01-25 14:18:34 +01:00
|
|
|
// Instead we create a separate task to run the
|
|
|
|
// tests based on ESIntegTestCase
|
2019-04-09 11:52:50 -07:00
|
|
|
task internalClusterTest(type: Test) {
|
2019-11-14 11:01:23 +00:00
|
|
|
description = 'Java fantasy integration tests'
|
|
|
|
dependsOn internalClusterTestNoSecurityManager
|
|
|
|
mustRunAfter test
|
|
|
|
|
|
|
|
include '**/*IT.class'
|
|
|
|
exclude noSecurityManagerITClasses
|
|
|
|
systemProperty 'es.set.netty.runtime.available.processors', 'false'
|
2018-01-25 14:18:34 +01:00
|
|
|
}
|
2018-04-13 19:11:28 +02:00
|
|
|
|
2019-04-09 11:52:50 -07:00
|
|
|
check.dependsOn internalClusterTest
|
2019-03-01 14:48:26 +01:00
|
|
|
|
2018-08-21 12:51:55 -04:00
|
|
|
// add all sub-projects of the qa sub-project
|
|
|
|
gradle.projectsEvaluated {
|
2019-11-14 11:01:23 +00: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 14:18:34 +01:00
|
|
|
|
2018-01-22 11:09:04 +01:00
|
|
|
dependencies {
|
2019-11-14 11:01:23 +00:00
|
|
|
compileOnly project(":server")
|
2018-07-24 22:28:17 -04:00
|
|
|
|
2019-11-14 11:01:23 +00:00
|
|
|
compileOnly project(path: xpackModule('core'), configuration: 'default')
|
|
|
|
testCompile project(path: xpackModule('core'), configuration: 'testArtifacts')
|
|
|
|
testCompile project(path: xpackModule('monitoring'), configuration: 'testArtifacts')
|
2018-01-22 11:09:04 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencyLicenses {
|
2019-11-14 11:01:23 +00:00
|
|
|
ignoreSha 'x-pack-core'
|
2018-01-22 11:09:04 +01:00
|
|
|
}
|
|
|
|
|
2019-01-08 13:39:03 +02:00
|
|
|
testingConventions.naming {
|
2019-11-14 11:01:23 +00:00
|
|
|
IT {
|
|
|
|
baseClass "org.elasticsearch.xpack.CcrIntegTestCase"
|
|
|
|
}
|
2019-01-08 13:39:03 +02:00
|
|
|
}
|