elasticsearch/plugins/analysis-smartcn/build.gradle

29 lines
881 B
Groovy
Raw Normal View History

/*
* 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.yaml-rest-test'
esplugin {
description 'Smart Chinese Analysis plugin integrates Lucene Smart Chinese analysis module into elasticsearch.'
classname 'org.elasticsearch.plugin.analysis.smartcn.AnalysisSmartChinesePlugin'
}
dependencies {
api "org.apache.lucene:lucene-analyzers-smartcn:${versions.lucene}"
}
restResources {
restApi {
includeCore '_common', 'indices', 'index', 'search'
}
}
tasks.named("dependencyLicenses").configure {
mapping from: /lucene-.*/, to: 'lucene'
}