2018-01-25 08:18:34 -05:00
|
|
|
import com.carrotsearch.gradle.junit4.RandomizedTestingTask
|
|
|
|
import org.elasticsearch.gradle.BuildPlugin
|
|
|
|
|
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'
|
|
|
|
|
|
|
|
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
|
|
|
|
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',
|
|
|
|
dependsOn: test.dependsOn) {
|
|
|
|
configure(BuildPlugin.commonTestConfig(project))
|
|
|
|
classpath = project.test.classpath
|
2018-06-28 11:24:41 -04:00
|
|
|
testClassesDirs = project.test.testClassesDirs
|
2018-01-25 08:18:34 -05:00
|
|
|
include '**/*IT.class'
|
|
|
|
systemProperty 'es.set.netty.runtime.available.processors', 'false'
|
|
|
|
}
|
2018-04-13 13:11:28 -04:00
|
|
|
|
2018-01-25 08:18:34 -05:00
|
|
|
internalClusterTest.mustRunAfter test
|
2018-05-16 04:54:15 -04:00
|
|
|
check.dependsOn(internalClusterTest, 'qa:multi-cluster:followClusterTest', 'qa:multi-cluster-with-security:followClusterTest')
|
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}"
|
|
|
|
compileOnly "org.elasticsearch.plugin:x-pack-core:${version}"
|
|
|
|
testCompile project(path: xpackModule('core'), 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
|
|
|
}
|