This is an automated email from the ASF dual-hosted git repository.
slfan1989 pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/trunk by this push:
new cecddfe13e6 HADOOP-19691. [JDK17] Disallow JUnit4 Imports After JUnit5
Migration. (#7976) Contributed by Shilun Fan.
cecddfe13e6 is described below
commit cecddfe13e6f2f54d345da5ed983c90b55f6b322
Author: slfan1989 <[email protected]>
AuthorDate: Thu Sep 25 06:13:23 2025 +0800
HADOOP-19691. [JDK17] Disallow JUnit4 Imports After JUnit5 Migration.
(#7976) Contributed by Shilun Fan.
* HADOOP-19691. [JDK17] Disallow JUnit4 Imports After JUnit5 Migration.
Reviewed-by: Chris Nauroth <[email protected]>
Signed-off-by: Shilun Fan <[email protected]>
---
pom.xml | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/pom.xml b/pom.xml
index e184c8396ff..a52dceb268c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -322,6 +322,17 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
https://maven.apache.org/x
<bannedImport>org.apache.commons.logging.**</bannedImport>
</bannedImports>
</restrictImports>
+ <restrictImports>
+ <includeTestCode>true</includeTestCode>
+ <reason>Use JUnit5</reason>
+ <bannedImports>
+ <bannedImport>org.junit.**</bannedImport>
+ </bannedImports>
+ <allowedImports>
+ <allowedImport>org.junit.jupiter.**</allowedImport>
+ <allowedImport>org.junit.platform.**</allowedImport>
+ </allowedImports>
+ </restrictImports>
</rules>
</configuration>
</execution>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]