38 lines
1.3 KiB
Groovy
38 lines
1.3 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'
|
|
|
|
esplugin {
|
|
description 'The Korean (nori) Analysis plugin integrates Lucene nori analysis module into elasticsearch.'
|
|
classname 'org.elasticsearch.plugin.analysis.nori.AnalysisNoriPlugin'
|
|
}
|
|
|
|
dependencies {
|
|
api "org.apache.lucene:lucene-analyzers-nori:${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.NoriAnalyzerProvider',
|
|
'org.elasticsearch.index.analysis.NoriNumberFilterFactory',
|
|
'org.elasticsearch.index.analysis.NoriPartOfSpeechStopFilterFactory',
|
|
'org.elasticsearch.index.analysis.NoriReadingFormFilterFactory',
|
|
'org.elasticsearch.index.analysis.NoriTokenizerFactory'
|
|
}
|