elasticsearch/x-pack/plugin/mapper-version/build.gradle

33 lines
993 B
Groovy

import org.elasticsearch.gradle.internal.info.BuildParams
evaluationDependsOn(xpackModule('core'))
apply plugin: 'elasticsearch.internal-es-plugin'
apply plugin: 'elasticsearch.legacy-yaml-rest-test'
apply plugin: 'elasticsearch.legacy-yaml-rest-compat-test'
apply plugin: 'elasticsearch.internal-cluster-test'
esplugin {
name 'mapper-version'
description 'A plugin for a field type to store software versions'
classname 'org.elasticsearch.xpack.versionfield.VersionFieldPlugin'
extendedPlugins = ['x-pack-core', 'lang-painless']
}
base {
archivesName = 'x-pack-mapper-version'
}
dependencies {
compileOnly project(path: xpackModule('core'))
compileOnly project(':modules:lang-painless:spi')
testImplementation(testArtifact(project(xpackModule('core'))))
testImplementation project(path: xpackModule('analytics'))
}
if (BuildParams.isSnapshotBuild() == false) {
tasks.named("test").configure {
systemProperty 'es.index_mode_feature_flag_registered', 'true'
}
}