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'
|
2020-05-12 00:06:04 -04:00
|
|
|
apply plugin: 'elasticsearch.internal-cluster-test'
|
2020-01-17 14:54:53 -05:00
|
|
|
|
|
|
|
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-05-12 00:06:04 -04:00
|
|
|
tasks.named('internalClusterTest').configure {
|
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
|
|
|
}
|
|
|
|
|
2020-01-17 14:54:53 -05:00
|
|
|
dependencies {
|
|
|
|
compileOnly project(path: xpackModule('core'), configuration: 'default')
|
2020-06-14 16:30:44 -04:00
|
|
|
testImplementation project(path: xpackModule('core'), configuration: 'testArtifacts')
|
2020-01-17 14:54:53 -05:00
|
|
|
}
|
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"
|
|
|
|
}
|
|
|
|
}
|