/* * 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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public * License v3.0 only", 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}" runtimeOnly "org.apache.lucene:lucene-codecs:${versions.lucene}" runtimeOnly "org.antlr:antlr4-runtime:${versions.antlr4}" runtimeOnly 'org.ow2.asm:asm:7.2' runtimeOnly 'org.ow2.asm:asm-commons:7.2' runtimeOnly 'org.ow2.asm:asm-tree:7.2' runtimeOnly 'org.ow2.asm:asm-analysis:7.2' } restResources { restApi { include '_common', 'indices', 'index', 'cluster', 'nodes', 'search' } } tasks.named("dependencyLicenses").configure { mapping from: /lucene-.*/, to: 'lucene' mapping from: /asm-.*/, to: 'asm' }