Skip to content

Commit 8a1022e

Browse files
authored
ESQL: Setup project (#144)
1 parent 2b22e77 commit 8a1022e

File tree

3 files changed

+58
-0
lines changed

3 files changed

+58
-0
lines changed

x-pack/plugin/esql/build.gradle

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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+
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/*
2+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+
* or more contributor license agreements. Licensed under the Elastic License
4+
* 2.0; you may not use this file except in compliance with the Elastic License
5+
* 2.0.
6+
*/
7+
8+
package org.elasticsearch.xpack.esql.plugin;
9+
10+
import org.elasticsearch.plugins.ActionPlugin;
11+
import org.elasticsearch.plugins.Plugin;
12+
13+
public class EsqlPlugin extends Plugin implements ActionPlugin {
14+
15+
public EsqlPlugin() {}
16+
}

x-pack/plugin/esql/src/main/plugin-metadata/plugin-security.policy

Whitespace-only changes.

0 commit comments

Comments
 (0)