diff --git a/plugins/analysis-icu/build.gradle b/plugins/analysis-icu/build.gradle index 2a8905e080f..123db9fc4a5 100644 --- a/plugins/analysis-icu/build.gradle +++ b/plugins/analysis-icu/build.gradle @@ -22,6 +22,12 @@ esplugin { classname 'org.elasticsearch.plugin.analysis.icu.AnalysisICUPlugin' } +forbiddenApis { + signatures += [ + "com.ibm.icu.text.Collator#getInstance() @ Don't use default locale, use getInstance(ULocale) instead" + ] +} + dependencies { compile "org.apache.lucene:lucene-analyzers-icu:${versions.lucene}" compile 'com.ibm.icu:icu4j:59.1'