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;