2018-01-25 04:38:34 -05:00
|
|
|
import com.carrotsearch.gradle.junit4.RandomizedTestingTask
|
|
|
|
import org.elasticsearch.gradle.BuildPlugin
|
|
|
|
|
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-07-24 11:53:04 -04:00
|
|
|
compileOnly project(path: xpackModule('core'), configuration: 'shadow')
|
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) {
|
|
|
|
configure(BuildPlugin.commonTestConfig(project))
|
|
|
|
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
|
|
|
|
}
|