Skip to content

Commit

Permalink
Change the dependency type for antlr4-runtime to api.
Browse files Browse the repository at this point in the history
  • Loading branch information
afoucret committed Nov 4, 2024
1 parent 73c6c2b commit 3268343
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
import org.elasticsearch.index.query.QueryStringQueryBuilder;
import org.elasticsearch.xpack.esql.core.expression.predicate.fulltext.StringQueryPredicate;
import org.elasticsearch.xpack.esql.core.tree.Source;
import org.elasticsearch.xpack.kql.parser.KqlParser;

import java.util.Collections;
import java.util.Map;
Expand Down Expand Up @@ -74,7 +73,6 @@ public QueryStringQuery(Source source, String query, Map<String, Float> fields,

@Override
public QueryBuilder asBuilder() {
KqlParser kqlQueryBuilder = new KqlParser();
final QueryStringQueryBuilder queryBuilder = QueryBuilders.queryStringQuery(query);
queryBuilder.fields(fields);
options.forEach((k, v) -> {
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugin/kql/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ base {

dependencies {
compileOnly project(path: xpackModule('core'))
compileOnly "org.antlr:antlr4-runtime:${versions.antlr4}"
api "org.antlr:antlr4-runtime:${versions.antlr4}"

testImplementation "org.antlr:antlr4-runtime:${versions.antlr4}"
testImplementation project(':test:framework')
Expand Down

0 comments on commit 3268343

Please sign in to comment.