2018-01-25 04:38:34 -05:00
|
|
|
import com.carrotsearch.gradle.junit4.RandomizedTestingTask
|
|
|
|
|
2018-01-27 00:48:30 -05:00
|
|
|
evaluationDependsOn(xpackModule('core'))
|
2018-01-22 10:55:03 -05:00
|
|
|
|
2018-01-20 00:30:17 -05:00
|
|
|
apply plugin: 'elasticsearch.esplugin'
|
|
|
|
esplugin {
|
|
|
|
name 'x-pack-upgrade'
|
|
|
|
description 'Elasticsearch Expanded Pack Plugin - Upgrade'
|
|
|
|
classname 'org.elasticsearch.xpack.upgrade.Upgrade'
|
|
|
|
extendedPlugins = ['x-pack-core']
|
|
|
|
}
|
|
|
|
|
|
|
|
archivesBaseName = 'x-pack-upgrade'
|
|
|
|
|
|
|
|
dependencies {
|
2018-08-21 20:03:28 -04:00
|
|
|
// "org.elasticsearch.plugin:x-pack-core:${version}" doesn't work with idea because the testArtifacts are also here
|
|
|
|
compileOnly project(path: xpackModule('core'), configuration: 'default')
|
2018-01-27 00:48:30 -05:00
|
|
|
testCompile project(path: xpackModule('core'), configuration: 'testArtifacts')
|
2018-01-20 00:30:17 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
compileJava.options.compilerArgs << "-Xlint:-deprecation,-rawtypes,-serial,-try,-unchecked"
|
|
|
|
compileTestJava.options.compilerArgs << "-Xlint:-deprecation,-rawtypes,-serial,-try,-unchecked"
|
|
|
|
|
|
|
|
run {
|
2018-01-27 00:48:30 -05:00
|
|
|
plugin xpackModule('core')
|
2018-01-20 00:30:17 -05:00
|
|
|
}
|
2018-01-25 04:38:34 -05:00
|
|
|
|
|
|
|
integTest.enabled = false
|
|
|
|
|
|
|
|
// Instead we create a separate task to run the
|
|
|
|
// tests based on ESIntegTestCase
|
|
|
|
task internalClusterTest(type: RandomizedTestingTask,
|
|
|
|
group: JavaBasePlugin.VERIFICATION_GROUP,
|
|
|
|
description: 'Multi-node tests',
|
|
|
|
dependsOn: test.dependsOn) {
|
|
|
|
classpath = project.test.classpath
|
2018-06-28 08:14:34 -04:00
|
|
|
testClassesDirs = project.test.testClassesDirs
|
2018-01-25 04:38:34 -05:00
|
|
|
include '**/*IT.class'
|
|
|
|
systemProperty 'es.set.netty.runtime.available.processors', 'false'
|
|
|
|
}
|
2018-07-24 11:53:04 -04:00
|
|
|
check.dependsOn internalClusterTest
|
2018-01-25 04:38:34 -05:00
|
|
|
internalClusterTest.mustRunAfter test
|
|
|
|
|
|
|
|
// also add an "alias" task to make typing on the command line easier
|
|
|
|
task icTest {
|
|
|
|
dependsOn internalClusterTest
|
|
|
|
}
|