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

voonhous pushed a commit to tag rfc-105-pre-cleanup
in repository https://gitbox.apache.org/repos/asf/hudi.git

commit b13ae80dc81763ea6e5d1c61f76614b24e21dbc7
Author: voon <[email protected]>
AuthorDate: Tue May 26 23:04:35 2026 +0800

    fix(trino): pin junit-platform to keep it aligned with jupiter 5.14.1
    
    Trino's grandparent BOM (io.airlift:airbase:375) manages
    junit-platform-* at 6.0.3 (paired with jupiter 6.x). Hudi's root pom
    manages junit-jupiter at 5.14.1 (paired with platform 1.14.1). With both
    BOMs imported, airbase wins for platform and we end up with jupiter 5.x +
    platform 6.x, which surefire fails to launch with:
    
      OutputDirectoryCreator not available; probably due to unaligned versions
      of the junit-platform-engine and junit-platform-launcher jars on the
      classpath/module path
    
    Pin junit-platform-commons / -engine / -launcher to 
${junit.platform.version}
    (1.14.1) in the plugin's dependencyManagement so the local pin overrides
    airbase. Tests discover and run again.
---
 hudi-trino-plugin/pom.xml | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/hudi-trino-plugin/pom.xml b/hudi-trino-plugin/pom.xml
index 9ccd44eef81b..fd281d96ff30 100644
--- a/hudi-trino-plugin/pom.xml
+++ b/hudi-trino-plugin/pom.xml
@@ -55,6 +55,24 @@
                 <type>pom</type>
                 <scope>import</scope>
             </dependency>
+            <!-- Airbase manages junit-platform at 6.0.3 (paired with jupiter 
6.x). Hudi manages
+                 jupiter at 5.14.1 (paired with platform 1.14.1). Pin platform 
here to keep the
+                 pair consistent; without this, surefire fails with 
OutputDirectoryCreator not found. -->
+            <dependency>
+                <groupId>org.junit.platform</groupId>
+                <artifactId>junit-platform-commons</artifactId>
+                <version>${junit.platform.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.junit.platform</groupId>
+                <artifactId>junit-platform-engine</artifactId>
+                <version>${junit.platform.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.junit.platform</groupId>
+                <artifactId>junit-platform-launcher</artifactId>
+                <version>${junit.platform.version}</version>
+            </dependency>
         </dependencies>
     </dependencyManagement>
 

Reply via email to