Skip to content

Commit 1fd421d

Browse files
authored
Use more standard Gradle JUnit configuration (#7720)
1 parent e2c48fd commit 1fd421d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

buildSrc/src/main/kotlin/otel.java-conventions.gradle.kts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,8 @@ dependencies {
238238

239239
testing {
240240
suites.withType(JvmTestSuite::class).configureEach {
241+
useJUnitJupiter()
242+
241243
dependencies {
242244
implementation(project(project.path))
243245

@@ -247,8 +249,6 @@ testing {
247249
compileOnly("com.google.errorprone:error_prone_annotations")
248250
compileOnly("com.google.code.findbugs:jsr305")
249251

250-
implementation("org.junit.jupiter:junit-jupiter-api")
251-
implementation("org.junit.jupiter:junit-jupiter-params")
252252
implementation("nl.jqno.equalsverifier:equalsverifier")
253253
implementation("org.mockito:mockito-core")
254254
implementation("org.mockito:mockito-junit-jupiter")
@@ -257,7 +257,6 @@ testing {
257257
implementation("org.junit-pioneer:junit-pioneer")
258258
implementation("io.github.netmikey.logunit:logunit-jul")
259259

260-
runtimeOnly("org.junit.jupiter:junit-jupiter-engine")
261260
runtimeOnly("org.slf4j:slf4j-simple")
262261
}
263262

0 commit comments

Comments
 (0)