diff --git a/build.gradle b/build.gradle index 61b9b428..14d0fa13 100644 --- a/build.gradle +++ b/build.gradle @@ -66,9 +66,9 @@ subprojects { implementation(platform(catalog.opentelemetryInstrumentationBom)) implementation(platform(catalog.opentelemetryInstrumentationAlphaBom)) - testImplementation("org.mockito:mockito-core:5.5.0") + testImplementation(catalog.mockito) - testImplementation(enforcedPlatform("org.junit:junit-bom:" + catalog.versions.junit.get().toString())) + testImplementation(enforcedPlatform(catalog.junitBom)) testImplementation("org.junit.jupiter:junit-jupiter") } diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index cab238bc..662b8041 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -43,6 +43,9 @@ testcontainers = "org.testcontainers:testcontainers:1.19.4" logback = "ch.qos.logback:logback-classic:1.4.14" jackson = "com.fasterxml.jackson.core:jackson-databind:2.16.1" protobuf-util = "com.google.protobuf:protobuf-java-util:3.25.2" +mockito = "org.mockito:mockito-core:5.10.0" + +junitBom = { group = "org.junit", name = "junit-bom", version.ref = "junit" } spotlessPlugin = { group = "com.diffplug.spotless", name = "spotless-plugin-gradle", version.ref = "spotless" } diff --git a/testing-common/build.gradle.kts b/testing-common/build.gradle.kts index cb992eae..e2dc1bbd 100644 --- a/testing-common/build.gradle.kts +++ b/testing-common/build.gradle.kts @@ -9,7 +9,7 @@ dependencies { implementation(libs.assertj.core) implementation("io.opentelemetry:opentelemetry-sdk-testing") implementation("io.opentelemetry:opentelemetry-exporter-logging") - implementation(enforcedPlatform("org.junit:junit-bom:" + catalog.versions.junit.get())) + implementation(enforcedPlatform(catalog.junitBom)) implementation("org.junit.jupiter:junit-jupiter") compileOnly(libs.findbugs.jsr305)