Commit 0598295
committed
Exclude JUnit 4 from Hadoop dependencies in HDFS module
The HDFS tests were failing on CI with NoClassDefFoundError for org.junit.Assert
because Hadoop dependencies were bringing in JUnit 4 as a transitive dependency.
Since we've migrated to JUnit 5, we need to exclude JUnit 4 from all Hadoop
dependencies to prevent classpath conflicts.
Changes:
- Added JUnit 4 exclusions to hadoop-hdfs-client dependency
- Added JUnit 4 exclusions to hadoop-common dependency (both regular and test-jar)
- Added JUnit 4 exclusions to hadoop-hdfs dependency (both regular and test-jar)
This ensures that only JUnit 5 (Jupiter) is on the classpath during test execution.
Note: The HDFS module has a pre-existing Maven dependency resolution issue
on some environments that prevents compilation. This is unrelated to the
JUnit migration and exists on the master branch.1 parent 059e6d1 commit 0598295
1 file changed
+34
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
44 | 51 | | |
45 | 52 | | |
46 | 53 | | |
47 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
48 | 62 | | |
49 | 63 | | |
50 | 64 | | |
51 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
52 | 73 | | |
53 | 74 | | |
54 | 75 | | |
| |||
81 | 102 | | |
82 | 103 | | |
83 | 104 | | |
84 | | - | |
| 105 | + | |
85 | 106 | | |
86 | 107 | | |
87 | 108 | | |
88 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
89 | 115 | | |
90 | 116 | | |
91 | 117 | | |
92 | 118 | | |
93 | 119 | | |
94 | 120 | | |
95 | 121 | | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
96 | 129 | | |
97 | 130 | | |
98 | 131 | | |
| |||
0 commit comments