elasticsearch/plugins/analysis-smartcn/build.gradle

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
1.3 KiB
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.internal-yaml-rest-test'
apply plugin: 'elasticsearch.yaml-rest-compat-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 {
include '_common', 'indices', 'index', 'search'
}
}
tasks.named("dependencyLicenses").configure {
mapping from: /lucene-.*/, to: 'lucene'
}
tasks.named('splitPackagesAudit').configure {
// Lucene packages should be owned by Lucene!
ignoreClasses 'org.elasticsearch.index.analysis.SmartChineseAnalyzerProvider',
'org.elasticsearch.index.analysis.SmartChineseNoOpTokenFilterFactory',
'org.elasticsearch.index.analysis.SmartChineseStopTokenFilterFactory',
'org.elasticsearch.index.analysis.SmartChineseTokenizerTokenizerFactory'
}