From 63a3b11a95c97fd193342445b23ed8c4d98b7011 Mon Sep 17 00:00:00 2001 From: Ralph Ursprung Date: Wed, 5 Jun 2024 10:21:05 +0200 Subject: [PATCH] adapt to OpenSearch 2.x resolves #66 Signed-off-by: Ralph Ursprung --- build.gradle | 8 +++++++- .../org/opensearch/path/to/plugin/RenamePluginIT.java | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index be395b9..77adb05 100644 --- a/build.gradle +++ b/build.gradle @@ -63,7 +63,7 @@ validateNebulaPom.enabled = false buildscript { ext { - opensearch_version = System.getProperty("opensearch.version", "3.0.0-SNAPSHOT") + opensearch_version = System.getProperty("opensearch.version", "2.15.0-SNAPSHOT") } repositories { @@ -85,6 +85,10 @@ repositories { maven { url "https://plugins.gradle.org/m2/" } } +dependencies { + implementation group: 'org.apache.httpcomponents', name: 'httpcore', version: '4.4.16' +} + test { include '**/*Tests.class' } @@ -114,6 +118,8 @@ run { useCluster testClusters.integTest } +dependencyLicenses.enabled = false + // updateVersion: Task to auto update version to the next development iteration task updateVersion { onlyIf { System.getProperty('newVersion') } diff --git a/src/test/java/org/opensearch/path/to/plugin/RenamePluginIT.java b/src/test/java/org/opensearch/path/to/plugin/RenamePluginIT.java index d5f4dd7..24d8889 100644 --- a/src/test/java/org/opensearch/path/to/plugin/RenamePluginIT.java +++ b/src/test/java/org/opensearch/path/to/plugin/RenamePluginIT.java @@ -8,8 +8,8 @@ package org.opensearch.path.to.plugin; import com.carrotsearch.randomizedtesting.annotations.ThreadLeakScope; -import org.apache.hc.core5.http.ParseException; -import org.apache.hc.core5.http.io.entity.EntityUtils; +import org.apache.http.ParseException; +import org.apache.http.util.EntityUtils; import org.opensearch.client.Request; import org.opensearch.client.Response; import org.opensearch.plugins.Plugin;