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