Skip to content

Commit

Permalink
feat: bump elastic version 8.6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
DostonAkhmedov committed May 15, 2023
1 parent 5b9de24 commit 8c00d17
Show file tree
Hide file tree
Showing 16 changed files with 21 additions and 19 deletions.
2 changes: 1 addition & 1 deletion buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ idea {
}

dependencies {
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.20")
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.21")
}
1 change: 1 addition & 0 deletions buildSrc/src/main/kotlin/Versions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ object Versions {
EsVersion(7, 12) to "8.8.0",
EsVersion(7, 13) to "8.8.2",
EsVersion(7, 14) to "8.9.0",
EsVersion(8, 6) to "9.4.2",
)
}

Expand Down
3 changes: 2 additions & 1 deletion jmorphy2-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ tasks.register<Jar>(
name = "jarTest"
) {
dependsOn("testClasses")
classifier = "tests"
archiveClassifier.convention("tests");
archiveClassifier.set("tests");
from(sourceSets.test)
}

Expand Down
2 changes: 1 addition & 1 deletion jmorphy2-elasticsearch/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ buildscript {
}
dependencies {
classpath("org.elasticsearch.gradle:build-tools:${project.getElasticsearchVersion()}")
classpath("com.netflix.nebula:gradle-ospackage-plugin:8.5.6")
classpath("com.netflix.nebula:gradle-ospackage-plugin:9.1.1")
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public Jmorphy2AnalyzerProvider(IndexSettings indexSettings,
String name,
Settings settings,
Jmorphy2Service jmorphy2Service) {
super(indexSettings, name, settings);
super(name, settings);
analyzer = new Jmorphy2Analyzer(
jmorphy2Service.getMorphAnalyzer(
DEFAULT_LANGUAGE, null, Jmorphy2StemTokenFilterFactory.DEFAULT_CACHE_SIZE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public Jmorphy2StemTokenFilterFactory(IndexSettings indexSettings,
String name,
Settings settings,
Jmorphy2Service jmorphy2Service) {
super(indexSettings, name, settings);
super(name, settings);

String lang = settings.get("lang", settings.get("name"));
String substitutesPath = settings.get("char_substitutes_path");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public Jmorphy2SubjectTokenFilterFactory(IndexSettings indexSettings,
String name,
Settings settings,
Jmorphy2Service jmorphy2Service) {
super(indexSettings, name, settings);
super(name, settings);

String lang = settings.get("lang", settings.get("name"));
if (lang == null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import static org.hamcrest.Matchers.instanceOf;

import org.apache.lucene.analysis.Analyzer;
import static org.apache.lucene.analysis.BaseTokenStreamTestCase.assertAnalyzesTo;
import static org.apache.lucene.tests.analysis.BaseTokenStreamTestCase.assertAnalyzesTo;

import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.env.Environment;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import static org.hamcrest.Matchers.instanceOf;

import org.apache.lucene.analysis.Analyzer;
import static org.apache.lucene.analysis.BaseTokenStreamTestCase.assertAnalyzesTo;
import static org.apache.lucene.tests.analysis.BaseTokenStreamTestCase.assertAnalyzesTo;

import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.env.Environment;
Expand Down
2 changes: 1 addition & 1 deletion jmorphy2-lucene/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = getLibraryVersion()

dependencies {
implementation("org.apache.lucene:lucene-core:${project.getLuceneVersion()}")
implementation("org.apache.lucene:lucene-analyzers-common:${project.getLuceneVersion()}")
implementation("org.apache.lucene:lucene-analysis-common:${project.getLuceneVersion()}")
testImplementation("org.apache.lucene:lucene-test-framework:${project.getLuceneVersion()}")

api(project(":jmorphy2-core"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
import java.util.ArrayList;

import org.apache.lucene.analysis.TokenStream;
import org.apache.lucene.analysis.util.ResourceLoader;
import org.apache.lucene.analysis.util.ResourceLoaderAware;
import org.apache.lucene.analysis.util.TokenFilterFactory;
import org.apache.lucene.util.ResourceLoader;
import org.apache.lucene.util.ResourceLoaderAware;
import org.apache.lucene.analysis.TokenFilterFactory;

import company.evo.jmorphy2.JSONUtils;
import company.evo.jmorphy2.MorphAnalyzer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
import java.util.HashMap;

import org.apache.lucene.analysis.TokenStream;
import org.apache.lucene.analysis.util.ResourceLoader;
import org.apache.lucene.analysis.util.ResourceLoaderAware;
import org.apache.lucene.analysis.util.TokenFilterFactory;
import org.apache.lucene.util.ResourceLoader;
import org.apache.lucene.util.ResourceLoaderAware;
import org.apache.lucene.analysis.TokenFilterFactory;

import company.evo.jmorphy2.MorphAnalyzer;
import company.evo.jmorphy2.JSONUtils;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import java.io.File;
import java.io.InputStream;

import org.apache.lucene.analysis.util.ResourceLoader;
import org.apache.lucene.util.ResourceLoader;

import company.evo.jmorphy2.FileLoader;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import java.io.IOException;

import org.apache.lucene.analysis.Analyzer;
import static org.apache.lucene.analysis.BaseTokenStreamTestCase.assertAnalyzesTo;
import static org.apache.lucene.tests.analysis.BaseTokenStreamTestCase.assertAnalyzesTo;


@RunWith(RandomizedRunner.class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import org.apache.lucene.analysis.Tokenizer;
import org.apache.lucene.analysis.TokenFilter;
import org.apache.lucene.analysis.core.WhitespaceTokenizer;
import static org.apache.lucene.analysis.BaseTokenStreamTestCase.assertAnalyzesTo;
import static org.apache.lucene.tests.analysis.BaseTokenStreamTestCase.assertAnalyzesTo;


@RunWith(RandomizedRunner.class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import org.apache.lucene.analysis.Tokenizer;
import org.apache.lucene.analysis.TokenFilter;
import org.apache.lucene.analysis.core.WhitespaceTokenizer;
import static org.apache.lucene.analysis.BaseTokenStreamTestCase.assertAnalyzesTo;
import static org.apache.lucene.tests.analysis.BaseTokenStreamTestCase.assertAnalyzesTo;

import company.evo.jmorphy2.nlp.Ruleset;
import company.evo.jmorphy2.nlp.Tagger;
Expand Down

0 comments on commit 8c00d17

Please sign in to comment.