Skip to content

Commit

Permalink
CI_change_opensearch_branch (#791)
Browse files Browse the repository at this point in the history
* CI_change_opensearch_branch

Signed-off-by: Varun Jain <[email protected]>

* CI_change_opensearch_branch

Signed-off-by: Varun Jain <[email protected]>

* CI_change_opensearch_branch

Signed-off-by: Varun Jain <[email protected]>

---------

Signed-off-by: Varun Jain <[email protected]>
  • Loading branch information
vibrantvarun authored Jan 28, 2023
1 parent 68910ff commit 1ba8bc6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ jobs:
uses: actions/checkout@v3
with:
repository: opensearch-project/OpenSearch
ref: feature/extensions
ref: main
path: opensearch

- name: Publish to Maven Local
run: |
./opensearch/gradlew --project-dir ./opensearch/ publishToMavenLocal
- name: Assemble OpenSearch feature/extensions
- name: Assemble OpenSearch main
run: |
./opensearch/gradlew --project-dir ./opensearch/ assemble
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,7 @@ dependencies {
// compileOnly "org.opensearch:opensearch-job-scheduler-spi:${job_scheduler_version}"
// Removed Common Utils dependency from AD
// implementation "org.opensearch:common-utils:${common_utils_version}"
implementation "org.opensearch:opensearch-sdk-java:1.0.0-SNAPSHOT"
implementation "org.opensearch.sdk:opensearch-sdk-java:1.0.0-SNAPSHOT"
implementation "org.opensearch.client:opensearch-rest-client:${opensearch_version}"
implementation "org.opensearch.client:opensearch-java:${opensearch_version}"
implementation "org.opensearch.client:opensearch-rest-client:${opensearch_version}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ public List<NamedXContentRegistry.Entry> getNamedXContent() {
public OpenSearchClient getClient() {
SDKClient sdkClient = new SDKClient();
OpenSearchClient client = sdkClient
.initializeClient(getExtensionSettings().getOpensearchAddress(), Integer.parseInt(getExtensionSettings().getOpensearchPort()));
.initializeJavaClient(
getExtensionSettings().getOpensearchAddress(),
Integer.parseInt(getExtensionSettings().getOpensearchPort())
);
return client;
}

Expand Down

0 comments on commit 1ba8bc6

Please sign in to comment.