Skip to content

Commit

Permalink
[Backport 1.x] fix jackson databind version: use same version as Open…
Browse files Browse the repository at this point in the history
…Search core (#380)

* Version Increment to 1.3.3 OpenSearch release (#331)

* Version bump 1.3.3

Signed-off-by: Prudhvi Godithi <[email protected]>

* Incremented version to 1.3.4. (#359)

Signed-off-by: Zelin Hao <[email protected]>

* fix jackson databind version: use same version as OpenSearch core

Signed-off-by: Yaliang Wu <[email protected]>

Co-authored-by: Prudhvi Godithi <[email protected]>
Co-authored-by: Zelin Hao <[email protected]>
  • Loading branch information
3 people authored Jul 28, 2022
1 parent ef9763d commit 0b2c8f1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/CI-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ jobs:
run: |
plugin=`ls plugin/build/distributions/*.zip`
echo MLCommons plugin $plugin
version=1.3.2
plugin_version=1.3.2.0-SNAPSHOT
version=1.3.4
plugin_version=1.3.4.0-SNAPSHOT
echo Using OpenSearch $version with MLCommons $plugin_version
cd ..
if docker pull opensearchstaging/opensearch:$version
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ buildscript {

ext {
opensearch_group = "org.opensearch"
opensearch_version = System.getProperty("opensearch.version", "1.3.2-SNAPSHOT")
opensearch_version = System.getProperty("opensearch.version", "1.3.4-SNAPSHOT")
// 1.3.0 -> 1.3.0.0, and 1.3.0-SNAPSHOT -> 1.3.0.0-SNAPSHOT
opensearch_build = opensearch_version.replaceAll(/(\.\d)([^\d]*)$/, '$1.0$2')
common_utils_version = System.getProperty("common_utils.version", opensearch_build)
Expand Down
4 changes: 3 additions & 1 deletion plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ dependencies {
compile "org.opensearch.client:opensearch-rest-client:${opensearch_version}"
compile "org.opensearch:common-utils:${common_utils_version}"
compile("com.fasterxml.jackson.core:jackson-annotations:${versions.jackson}")
compile("com.fasterxml.jackson.core:jackson-databind:${versions.jackson}")
compile("com.fasterxml.jackson.core:jackson-databind:${versions.jackson_databind}")
implementation group: 'com.google.guava', name: 'guava', version: '31.0.1-jre'
implementation group: 'com.google.code.gson', name: 'gson', version: '2.9.0'

Expand Down Expand Up @@ -241,6 +241,8 @@ configurations.all {
resolutionStrategy.force 'junit:junit:4.12'
resolutionStrategy.force 'org.apache.commons:commons-lang3:3.10'
resolutionStrategy.force 'commons-logging:commons-logging:1.2'
// Resolve conflict with org.opensearch:opensearch:1.3.4-SNAPSHOT which using 2.13.2
resolutionStrategy.force 'com.fasterxml.jackson.core:jackson-databind:2.13.2.2'
}

apply plugin: 'nebula.ospackage'
Expand Down

0 comments on commit 0b2c8f1

Please sign in to comment.