2020-04-02 11:46:31 -04:00
|
|
|
import org.elasticsearch.gradle.info.BuildParams
|
|
|
|
|
2020-01-17 14:54:53 -05:00
|
|
|
evaluationDependsOn(xpackModule('core'))
|
|
|
|
|
|
|
|
apply plugin: 'elasticsearch.esplugin'
|
|
|
|
|
|
|
|
esplugin {
|
|
|
|
name 'x-pack-autoscaling'
|
|
|
|
description 'Elasticsearch Expanded Pack Plugin - Autoscaling'
|
|
|
|
classname 'org.elasticsearch.xpack.autoscaling.Autoscaling'
|
|
|
|
extendedPlugins = ['x-pack-core']
|
|
|
|
hasNativeController false
|
|
|
|
requiresKeystore true
|
|
|
|
}
|
|
|
|
archivesBaseName = 'x-pack-autoscaling'
|
|
|
|
|
|
|
|
integTest.enabled = false
|
|
|
|
|
2020-04-01 07:35:45 -04:00
|
|
|
task internalClusterTest(type: Test) {
|
|
|
|
description = 'Java fantasy integration tests'
|
|
|
|
mustRunAfter test
|
|
|
|
|
|
|
|
include '**/*IT.class'
|
|
|
|
systemProperty 'es.set.netty.runtime.available.processors', 'false'
|
2020-04-02 11:46:31 -04:00
|
|
|
if (BuildParams.isSnapshotBuild() == false) {
|
|
|
|
systemProperty 'es.autoscaling_feature_flag_registered', 'true'
|
|
|
|
}
|
2020-04-01 07:35:45 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
check.dependsOn internalClusterTest
|
|
|
|
|
2020-01-17 14:54:53 -05:00
|
|
|
dependencies {
|
|
|
|
compileOnly project(path: xpackModule('core'), configuration: 'default')
|
|
|
|
testCompile project(path: xpackModule('core'), configuration: 'testArtifacts')
|
|
|
|
}
|
2020-02-06 21:55:01 -05: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 }
|
|
|
|
}
|
2020-04-01 07:35:45 -04:00
|
|
|
|
|
|
|
testingConventions.naming {
|
|
|
|
IT {
|
|
|
|
baseClass "org.elasticsearch.xpack.autoscaling.AutoscalingIntegTestCase"
|
|
|
|
}
|
|
|
|
}
|