File tree Expand file tree Collapse file tree 3 files changed +11
-9
lines changed Expand file tree Collapse file tree 3 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -8,8 +8,6 @@ buildscript {
8
8
ext {
9
9
opensearch_version = System . getProperty(" opensearch.version" , " 1.3.4-SNAPSHOT" )
10
10
spring_version = " 5.3.22"
11
- jackson_version = " 2.13.2"
12
- jackson_databind_version = " 2.13.2.2"
13
11
}
14
12
15
13
repositories {
@@ -31,6 +29,10 @@ plugins {
31
29
id ' jacoco'
32
30
}
33
31
32
+ // import versions defined in https://github.com/opensearch-project/OpenSearch/blob/main/buildSrc/src/main/java/org/opensearch/gradle/OpenSearchJavaPlugin.java#L94
33
+ // versions https://github.com/opensearch-project/OpenSearch/blob/main/buildSrc/version.properties
34
+ apply plugin : ' opensearch.java'
35
+
34
36
// Repository on root level is for dependencies that project code depends on. And this block must be placed after plugins{}
35
37
repositories {
36
38
mavenLocal()
@@ -128,7 +130,7 @@ subprojects {
128
130
}
129
131
130
132
configurations. all {
131
- resolutionStrategy. force " com.fasterxml.jackson.core:jackson-databind:${ jackson_databind_version } "
133
+ resolutionStrategy. force " com.fasterxml.jackson.core:jackson-databind:${ versions.jackson_databind } "
132
134
}
133
135
}
134
136
checkstyle {
Original file line number Diff line number Diff line change @@ -32,9 +32,9 @@ dependencies {
32
32
compile project(' :core' )
33
33
compile group : ' org.opensearch' , name : ' opensearch' , version : " ${ opensearch_version} "
34
34
compile " io.github.resilience4j:resilience4j-retry:1.5.0"
35
- compile group : ' com.fasterxml.jackson.core' , name : ' jackson-core' , version : " ${ jackson_version } "
36
- compile group : ' com.fasterxml.jackson.core' , name : ' jackson-databind' , version : " ${ jackson_databind_version } "
37
- compile group : ' com.fasterxml.jackson.dataformat' , name : ' jackson-dataformat-cbor' , version : " ${ jackson_version } "
35
+ compile group : ' com.fasterxml.jackson.core' , name : ' jackson-core' , version : " ${ versions.jackson } "
36
+ compile group : ' com.fasterxml.jackson.core' , name : ' jackson-databind' , version : " ${ versions.jackson_databind } "
37
+ compile group : ' com.fasterxml.jackson.dataformat' , name : ' jackson-dataformat-cbor' , version : " ${ versions.jackson } "
38
38
compile group : ' org.json' , name : ' json' , version :' 20180813'
39
39
compileOnly group : ' org.opensearch.client' , name : ' opensearch-rest-high-level-client' , version : " ${ opensearch_version} "
40
40
compile group : ' org.opensearch' , name :' opensearch-ml-client' , version : ' 1.3.4.0-SNAPSHOT'
Original file line number Diff line number Diff line change @@ -30,9 +30,9 @@ plugins {
30
30
31
31
dependencies {
32
32
compile group : ' com.google.guava' , name : ' guava' , version : ' 31.0.1-jre'
33
- compile group : ' com.fasterxml.jackson.core' , name : ' jackson-core' , version : " ${ jackson_version } "
34
- compile group : ' com.fasterxml.jackson.core' , name : ' jackson-databind' , version : " ${ jackson_databind_version } "
35
- compile group : ' com.fasterxml.jackson.dataformat' , name : ' jackson-dataformat-cbor' , version : " ${ jackson_version } "
33
+ compile group : ' com.fasterxml.jackson.core' , name : ' jackson-core' , version : " ${ versions.jackson } "
34
+ compile group : ' com.fasterxml.jackson.core' , name : ' jackson-databind' , version : " ${ versions.jackson_databind } "
35
+ compile group : ' com.fasterxml.jackson.dataformat' , name : ' jackson-dataformat-cbor' , version : " ${ versions.jackson } "
36
36
implementation ' com.google.code.gson:gson:2.8.9'
37
37
compile project(' :core' )
38
38
compile project(' :opensearch' )
You can’t perform that action at this time.
0 commit comments