elasticsearch/modules/lang-expression/build.gradle

35 lines
1.1 KiB
Groovy

/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/
apply plugin: 'elasticsearch.internal-yaml-rest-test'
apply plugin: 'elasticsearch.yaml-rest-compat-test'
apply plugin: 'elasticsearch.internal-cluster-test'
esplugin {
description 'Lucene expressions integration for Elasticsearch'
classname 'org.elasticsearch.script.expression.ExpressionPlugin'
}
dependencies {
api "org.apache.lucene:lucene-expressions:${versions.lucene}"
api 'org.antlr:antlr4-runtime:4.5.1-1'
api 'org.ow2.asm:asm:5.0.4'
api 'org.ow2.asm:asm-commons:5.0.4'
api 'org.ow2.asm:asm-tree:5.0.4'
}
restResources {
restApi {
include '_common', 'indices', 'index', 'cluster', 'nodes', 'search'
}
}
tasks.named("dependencyLicenses").configure {
mapping from: /lucene-.*/, to: 'lucene'
mapping from: /asm-.*/, to: 'asm'
}