diff --git a/plugin/build.gradle b/plugin/build.gradle index 4c80603d077..4306235b13d 100644 --- a/plugin/build.gradle +++ b/plugin/build.gradle @@ -81,6 +81,13 @@ bundlePlugin { exclude 'jackson-annotations-*.jar' exclude 'jackson-databind-*.jar' exclude 'httpcore5-5*.jar' + // TODO: Remove the three httpcore5/httpclient5 exclusions below — and ideally this entire + // bundlePlugin exclusion block — once analytics-engine becomes an optional dependency via the + // AnalyticsFrontEndExtension SPI (opensearch-project/OpenSearch#21449). The shared-classloader + // jar deduplication that requires this hand-maintained list goes away with the SPI. + exclude 'httpcore5-h2-*.jar' + exclude 'httpcore5-reactive-*.jar' + exclude 'httpclient5-*.jar' exclude 'commons-text-*.jar' // Calcite transitive deps now bundled in analytics-engine 3.7 — exclude from sql to avoid jar hell. exclude 'commons-math3-*.jar'