From cecc6123aa2addce5a89db2bff3a66205bb8834e Mon Sep 17 00:00:00 2001 From: Chris Bono Date: Sat, 15 Aug 2026 15:44:27 -0500 Subject: [PATCH] Update JUnit to 6.1.3 This updates junit-jupiter to 6.1.3 and explicitly declares junit-platform-launcher at the same version and wires it into both the test and intTest runtime classpaths since Gradle built-in default launcherr only knows about the old JUnit platform 1.x line. Co-Authored-By: Claude Sonnet 5 --- .../groovy/pulsar-client-reactive.library-conventions.gradle | 4 ++++ .../groovy/pulsar-client-reactive.test-conventions.gradle | 1 + gradle/libs.versions.toml | 3 ++- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/buildSrc/src/main/groovy/pulsar-client-reactive.library-conventions.gradle b/buildSrc/src/main/groovy/pulsar-client-reactive.library-conventions.gradle index 6e1f163c..b1ca78dd 100644 --- a/buildSrc/src/main/groovy/pulsar-client-reactive.library-conventions.gradle +++ b/buildSrc/src/main/groovy/pulsar-client-reactive.library-conventions.gradle @@ -38,6 +38,10 @@ compileJava { options.release = 8 } +dependencies { + testRuntimeOnly libs.junit.platform.launcher +} + tasks.withType(Test) { useJUnitPlatform() } diff --git a/buildSrc/src/main/groovy/pulsar-client-reactive.test-conventions.gradle b/buildSrc/src/main/groovy/pulsar-client-reactive.test-conventions.gradle index 69378773..6e137d49 100644 --- a/buildSrc/src/main/groovy/pulsar-client-reactive.test-conventions.gradle +++ b/buildSrc/src/main/groovy/pulsar-client-reactive.test-conventions.gradle @@ -42,6 +42,7 @@ dependencies { def sharedTestResourcesEntry = files(new File(rootDir, "shared-test-resources")) intTestRuntimeOnly sharedTestResourcesEntry testRuntimeOnly sharedTestResourcesEntry + intTestRuntimeOnly libs.junit.platform.launcher } tasks.register('integrationTest', Test) { diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index ecad3a88..e6de9ea5 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -25,7 +25,7 @@ checkstyle = "9.3" jackson = "2.18.5" # @pin jctools = "3.3.0" -junit-jupiter = "5.11.4" +junit-jupiter = "6.1.3" licenser = "0.6.1" log4j = "2.24.3" mockito = "5.18.0" @@ -45,6 +45,7 @@ jackson-datatype-jsr310 = { module = "com.fasterxml.jackson.datatype:jackson-dat jctools-core = { module = "org.jctools:jctools-core", version.ref = "jctools" } junit-jupiter = { module = "org.junit.jupiter:junit-jupiter", version.ref = "junit-jupiter" } junit-jupiter-params = { module = "org.junit.jupiter:junit-jupiter-params", version.ref = "junit-jupiter" } +junit-platform-launcher = { module = "org.junit.platform:junit-platform-launcher", version.ref = "junit-jupiter" } licenser = { module = "gradle.plugin.org.cadixdev.gradle:licenser", version.ref = "licenser" } log4j-api = { module = "org.apache.logging.log4j:log4j-api", version.ref = "log4j" } log4j-core = { module = "org.apache.logging.log4j:log4j-core", version.ref = "log4j" }