You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by on...@apache.org on 2026/08/15 20:33:15 UTC

(pulsar-client-reactive) 01/01: Fix JUnit platform launcher/engine version skew after JUnit 6 upgrade

This is an automated email from the ASF dual-hosted git repository.

onobc pushed a commit to branch update-junit-6_1_3
in repository https://gitbox.apache.org/repos/asf/pulsar-client-reactive.git

commit 19c46076f77be9092385e522d8bfcb165e35b908
Author: Chris Bono <on...@apache.org>
AuthorDate: Sat Aug 15 15:31:48 2026 -0500

    Fix JUnit platform launcher/engine version skew after JUnit 6 upgrade
    
    junit-jupiter was bumped to 6.1.3, but junit-platform-launcher was left
    to Gradle's built-in default, which only knows about the old JUnit
    platform 1.x line. This caused test discovery to fail with
    "OutputDirectoryCreator not available" since junit-platform-engine 6.x
    and the injected launcher were unaligned. Explicitly declare
    junit-platform-launcher at the same version and wire it into both the
    test and intTest runtime classpaths.
    
    Co-Authored-By: Claude Sonnet 5 <no...@anthropic.com>
---
 .../src/main/groovy/pulsar-client-reactive.library-conventions.gradle | 4 ++++
 .../src/main/groovy/pulsar-client-reactive.test-conventions.gradle    | 1 +
 gradle/libs.versions.toml                                             | 2 +-
 3 files changed, 6 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 6e1f163..b1ca78d 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 6937877..6e137d4 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 67abe20..f5545c7 100644
--- a/gradle/libs.versions.toml
+++ b/gradle/libs.versions.toml
@@ -25,7 +25,7 @@ checkstyle = "9.3"
 jackson = "2.18.9"
 # @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.23.0"