build.gradle 877 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
  3. * or more contributor license agreements. Licensed under the Elastic License
  4. * 2.0 and the Server Side Public License, v 1; you may not use this file except
  5. * in compliance with, at your election, the Elastic License 2.0 or the Server
  6. * Side Public License, v 1.
  7. */
  8. apply plugin: 'elasticsearch.yaml-rest-test'
  9. esplugin {
  10. description 'Smart Chinese Analysis plugin integrates Lucene Smart Chinese analysis module into elasticsearch.'
  11. classname 'org.elasticsearch.plugin.analysis.smartcn.AnalysisSmartChinesePlugin'
  12. }
  13. dependencies {
  14. api "org.apache.lucene:lucene-analyzers-smartcn:${versions.lucene}"
  15. }
  16. restResources {
  17. restApi {
  18. include '_common', 'indices', 'index', 'search'
  19. }
  20. }
  21. tasks.named("dependencyLicenses").configure {
  22. mapping from: /lucene-.*/, to: 'lucene'
  23. }