From 0f24e8ea3dadb7c0f4d2ccb5cd08089ace1c1a1c Mon Sep 17 00:00:00 2001 From: Sijie Liu Date: Wed, 22 May 2024 16:19:54 +0800 Subject: [PATCH] 2.10.0 --- README.md | 2 +- build.gradle | 2 -- gradle.properties | 2 +- src/main/plugin-metadata/plugin-security.policy | 1 + 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 881e024..c39bd8b 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # opensearch-analysis-hanlp HanLP Analyzer for OpenSearch -This is OpenSearch 2.11.0 port of [hanlp language analyser plugin](https://github.com/KennFalcon/elasticsearch-analysis-hanlp) +This is OpenSearch 2.10.0 port of [hanlp language analyser plugin](https://github.com/KennFalcon/elasticsearch-analysis-hanlp) This branch ([2.11.0-vanilla](https://github.com/pgtgrly/opensearch-analysis-hanlp/tree/2.11.0-vanilla)) contains minimal changes to the plugin code to build plugin for OpenSearch 2.11.0.it diff --git a/build.gradle b/build.gradle index 1daa0d0..01c2965 100644 --- a/build.gradle +++ b/build.gradle @@ -11,7 +11,6 @@ buildscript { } plugins { id 'java' - id 'com.github.johnrengelman.shadow' version '7.1.2' } group = 'org.opensearch.plugin' @@ -24,7 +23,6 @@ apply plugin: 'opensearch.opensearchplugin' loggerUsageCheck.enabled = false validateNebulaPom.enabled = false -validateShadowPom.enabled = false opensearchplugin { name 'opensearch-analysis-hanlp' diff --git a/gradle.properties b/gradle.properties index ea8a1a5..a6f2588 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1 +1 @@ -opensearchVersion = 2.11.0 \ No newline at end of file +opensearchVersion = 2.10.0 \ No newline at end of file diff --git a/src/main/plugin-metadata/plugin-security.policy b/src/main/plugin-metadata/plugin-security.policy index 87a8f21..cde4639 100644 --- a/src/main/plugin-metadata/plugin-security.policy +++ b/src/main/plugin-metadata/plugin-security.policy @@ -1,5 +1,6 @@ grant { // HanLP data directories + permission java.io.FilePermission "<>", "read"; permission java.io.FilePermission "plugins/analysis-hanlp/data/-", "read,write,delete"; permission java.io.FilePermission "plugins/analysis-hanlp/hanlp.cache", "read,write,delete";