Skip to content

Commit

Permalink
Use version catalog for log4j and mockito versions (#56) (#57)
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Widdis <[email protected]>
  • Loading branch information
dbwiddis authored Jan 25, 2025
1 parent 3b9a586 commit 38de3c3
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,10 @@ buildscript {
}

opensearch_java_version = '2.19.0'
log4j_version = '2.24.3'
apache_http_components_version = '5.4.1'
apache_http_core_version = '5.3.2'
aws_sdk_version = '2.29.50'
junit_version = '5.11.4'
mockito_version = '5.15.2'
junit_version = '5.11.4' // version catalog is 4.x
}

repositories {
Expand Down Expand Up @@ -89,8 +87,8 @@ subprojects {
dependencies {
// Common dependencies for all subprojects
implementation "org.opensearch:opensearch:${opensearch_version}"
implementation "org.apache.logging.log4j:log4j-api:${log4j_version}"
implementation "org.apache.logging.log4j:log4j-core:${log4j_version}"
implementation "org.apache.logging.log4j:log4j-api:${versions.log4j}"
implementation "org.apache.logging.log4j:log4j-core:${versions.log4j}"

implementation("com.fasterxml.jackson.core:jackson-annotations:${versions.jackson}")
implementation("com.fasterxml.jackson.core:jackson-databind:${versions.jackson_databind}")
Expand All @@ -102,7 +100,7 @@ subprojects {

testImplementation "org.opensearch.test:framework:${opensearch_version}"
testImplementation "org.junit.jupiter:junit-jupiter:${junit_version}"
testImplementation "org.mockito:mockito-core:${mockito_version}"
testImplementation "org.mockito:mockito-core:${versions.mockito}"
}

configurations {
Expand Down

0 comments on commit 38de3c3

Please sign in to comment.