Skip to content

Commit

Permalink
Removed jackson dependency
Browse files Browse the repository at this point in the history
Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
  • Loading branch information
owaiskazi19 committed Nov 4, 2022
1 parent f179359 commit 258faea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 2 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -756,8 +756,8 @@ dependencies {
// 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.client:opensearch-rest-client:2.0.0'
implementation 'org.opensearch.client:opensearch-java:2.0.0'
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}"
implementation group: 'com.google.guava', name: 'guava', version:'31.0.1-jre'
implementation group: 'com.google.guava', name: 'failureaccess', version:'1.0.1'
Expand All @@ -776,7 +776,6 @@ dependencies {
// implementation "com.fasterxml.jackson.core:jackson-core:${versions.jackson}"
// implementation "com.fasterxml.jackson.core:jackson-databind:${versions.jackson}"
// implementation "com.fasterxml.jackson.core:jackson-annotations:${versions.jackson}"
implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.13.4"

// used for serializing/deserializing rcf models.
implementation group: 'io.protostuff', name: 'protostuff-core', version: '1.8.0'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,8 @@ private NamedXContentRegistry.Entry registerAggregation(SearchPlugin.Aggregation
});
}

private CreateIndexRequest initAnomalyDetectorIndex() throws FileNotFoundException {
private CreateIndexRequest initAnomalyDetectorIndex() {
JsonpMapper mapper = sdkClient._transport().jsonpMapper();
// ((JacksonJsonpMapper) mapper).objectMapper().registerModule(new JavaTimeModule());
JsonParser parser = null;
try {
parser = mapper
Expand Down

0 comments on commit 258faea

Please sign in to comment.