Skip to content

Commit

Permalink
adapt to OpenSearch 2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
rursprung committed Jun 5, 2024
1 parent d5f3c83 commit 4ac545c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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'
}
Expand Down Expand Up @@ -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') }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4ac545c

Please sign in to comment.