Skip to content
This repository was archived by the owner on Oct 29, 2023. It is now read-only.

Commit 31d681d

Browse files
committed
Dependencies: Update to Elasticsearch 6.3.0
1 parent 3bc2f42 commit 31d681d

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ buildscript {
88
}
99

1010
dependencies {
11-
classpath "org.elasticsearch.gradle:build-tools:6.2.4"
11+
classpath "org.elasticsearch.gradle:build-tools:6.3.0"
1212
}
1313
}
1414

@@ -18,11 +18,11 @@ plugins {
1818
}
1919

2020
group = 'de.spinscale.elasticsearch.plugin'
21-
version = '6.2.4.1-SNAPSHOT'
21+
version = '6.3.0.1-SNAPSHOT'
2222

2323
apply plugin: 'java'
24-
apply plugin: 'elasticsearch.esplugin'
2524
apply plugin: 'idea'
25+
apply plugin: 'elasticsearch.esplugin'
2626

2727
// license of this project
2828
licenseFile = rootProject.file('LICENSE.txt')

src/main/java/com/cybozu/labs/langdetect/SecureDetectorFactory.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
import com.cybozu.labs.langdetect.util.LangProfile;
2121
import org.elasticsearch.common.io.FileSystemUtils;
22+
import org.elasticsearch.common.xcontent.DeprecationHandler;
2223
import org.elasticsearch.common.xcontent.NamedXContentRegistry;
2324
import org.elasticsearch.common.xcontent.XContentType;
2425
import org.elasticsearch.env.Environment;
@@ -66,7 +67,8 @@ public static void loadProfileFromClassPath(Environment environment) throws Lang
6667
String path = iter.next().toString().replaceFirst("/","");
6768
InputStream stream = SecureDetectorFactory.class.getClassLoader().getResourceAsStream(path);
6869

69-
Map<String, Object> data = XContentType.JSON.xContent().createParser(NamedXContentRegistry.EMPTY, stream).map();
70+
Map<String, Object> data = XContentType.JSON.xContent().createParser(NamedXContentRegistry.EMPTY,
71+
DeprecationHandler.THROW_UNSUPPORTED_OPERATION, stream).map();
7072
profiles.put(path, createLangProfile(data));
7173
}
7274
ds.close();

0 commit comments

Comments
 (0)