2018-01-25 08:18:34 -05:00
|
|
|
import com.carrotsearch.gradle.junit4.RandomizedTestingTask
|
|
|
|
import org.elasticsearch.gradle.BuildPlugin
|
|
|
|
|
2018-01-22 15:07:20 -05:00
|
|
|
evaluationDependsOn(':x-pack-elasticsearch:plugin:core')
|
|
|
|
|
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']
|
|
|
|
licenseFile project(':x-pack-elasticsearch').file('LICENSE.txt')
|
|
|
|
noticeFile project(':x-pack-elasticsearch').file('NOTICE.txt')
|
|
|
|
}
|
|
|
|
archivesBaseName = 'x-pack-ccr'
|
|
|
|
|
|
|
|
licenseHeaders.enabled = false
|
|
|
|
|
|
|
|
integTest.enabled = false
|
|
|
|
|
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
|
|
|
|
testClassesDir = project.test.testClassesDir
|
|
|
|
include '**/*IT.class'
|
|
|
|
systemProperty 'es.set.netty.runtime.available.processors', 'false'
|
|
|
|
}
|
|
|
|
check.dependsOn internalClusterTest
|
|
|
|
internalClusterTest.mustRunAfter test
|
|
|
|
|
2018-01-22 05:09:04 -05:00
|
|
|
dependencies {
|
|
|
|
provided "org.elasticsearch:elasticsearch:${version}"
|
|
|
|
|
|
|
|
provided "org.elasticsearch.plugin:x-pack-core:${version}"
|
|
|
|
testCompile project(path: ':x-pack-elasticsearch:plugin:core', configuration: 'testArtifacts')
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencyLicenses {
|
|
|
|
ignoreSha 'x-pack-core'
|
|
|
|
}
|
|
|
|
|
|
|
|
// TODO: Fix unchecked warnings
|
|
|
|
compileTestJava.options.compilerArgs << "-Xlint:-unchecked"
|
|
|
|
|
2018-01-22 15:07:20 -05:00
|
|
|
run {
|
|
|
|
plugin ':x-pack-elasticsearch:plugin:core'
|
|
|
|
}
|