2018-01-25 08:18:34 -05:00
|
|
|
import com.carrotsearch.gradle.junit4.RandomizedTestingTask
|
|
|
|
|
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
|
|
|
|
|
2018-05-16 01:48:32 -04:00
|
|
|
compileJava.options.compilerArgs << "-Xlint:-try"
|
2018-07-17 11:39:49 -04:00
|
|
|
compileTestJava.options.compilerArgs << "-Xlint:-try"
|
2018-05-16 01:48:32 -04:00
|
|
|
|
2019-03-01 08:48:26 -05:00
|
|
|
// Integration Test classes that cannot run with the security manager
|
|
|
|
String[] noSecurityManagerITClasses = [ "**/CloseFollowerIndexIT.class" ]
|
|
|
|
|
2018-01-25 08:18:34 -05:00
|
|
|
// Instead we create a separate task to run the
|
|
|
|
// tests based on ESIntegTestCase
|
|
|
|
task internalClusterTest(type: RandomizedTestingTask,
|
|
|
|
group: JavaBasePlugin.VERIFICATION_GROUP,
|
|
|
|
description: 'Java fantasy integration tests',
|
2018-12-19 01:25:20 -05:00
|
|
|
dependsOn: unitTest.dependsOn) {
|
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-12-06 17:13:49 -05:00
|
|
|
check.dependsOn internalClusterTest
|
|
|
|
internalClusterTest.mustRunAfter test
|
2018-04-13 13:11:28 -04:00
|
|
|
|
2019-03-01 08:48:26 -05:00
|
|
|
task internalClusterTestNoSecurityManager(type: RandomizedTestingTask,
|
|
|
|
group: JavaBasePlugin.VERIFICATION_GROUP,
|
|
|
|
description: 'Java fantasy integration tests with no security manager',
|
|
|
|
dependsOn: unitTest.dependsOn) {
|
|
|
|
include noSecurityManagerITClasses
|
|
|
|
systemProperty 'es.set.netty.runtime.available.processors', 'false'
|
|
|
|
systemProperty 'tests.security.manager', 'false'
|
|
|
|
}
|
|
|
|
internalClusterTest.dependsOn internalClusterTestNoSecurityManager
|
|
|
|
|
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"
|
|
|
|
}
|
|
|
|
}
|