|
| 1 | +import org.elasticsearch.gradle.internal.info.BuildParams |
| 2 | +apply plugin: 'elasticsearch.internal-es-plugin' |
| 3 | +apply plugin: 'elasticsearch.internal-cluster-test' |
| 4 | +esplugin { |
| 5 | + name 'x-pack-esql' |
| 6 | + description 'The plugin that powers ESQL for Elasticsearch' |
| 7 | + classname 'org.elasticsearch.xpack.esql.plugin.EsqlPlugin' |
| 8 | + extendedPlugins = ['x-pack-ql', 'lang-painless'] |
| 9 | +} |
| 10 | + |
| 11 | +ext { |
| 12 | + // ESQL dependency versions |
| 13 | + antlrVersion = "4.9.2" |
| 14 | +} |
| 15 | + |
| 16 | +archivesBaseName = 'x-pack-esql' |
| 17 | + |
| 18 | +dependencies { |
| 19 | + compileOnly project(path: xpackModule('core')) |
| 20 | + compileOnly(project(':modules:lang-painless:spi')) |
| 21 | + compileOnly project(xpackModule('ql')) |
| 22 | + |
| 23 | + testImplementation project(':test:framework') |
| 24 | + testImplementation(testArtifact(project(xpackModule('core')))) |
| 25 | + testImplementation(testArtifact(project(xpackModule('security')))) |
| 26 | + testImplementation(testArtifact(project(xpackModule('ql')))) |
| 27 | + testImplementation project(path: ':modules:reindex') |
| 28 | + testImplementation project(path: ':modules:parent-join') |
| 29 | + testImplementation project(path: ':modules:analysis-common') |
| 30 | + |
| 31 | + internalClusterTestImplementation project(":client:rest-high-level") |
| 32 | +} |
| 33 | + |
| 34 | + |
| 35 | +/**************************************************************** |
| 36 | + * Enable QA/rest integration tests for snapshot builds only * |
| 37 | + * TODO: Enable for all builds upon this feature release * |
| 38 | + ****************************************************************/ |
| 39 | +if (BuildParams.isSnapshotBuild()) { |
| 40 | + addQaCheckDependencies(project) |
| 41 | +} |
| 42 | + |
0 commit comments