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

pvillard pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi.git


The following commit(s) were added to refs/heads/main by this push:
     new aec38ba512 NIFI-15111 Added JUnit 4 to Banned Dependencies
aec38ba512 is described below

commit aec38ba512a8dc1c3a93fa3d4c5056579656ba42
Author: exceptionfactory <[email protected]>
AuthorDate: Fri Oct 17 12:36:30 2025 -0500

    NIFI-15111 Added JUnit 4 to Banned Dependencies
    
    Signed-off-by: Pierre Villard <[email protected]>
    
    This closes #10434.
---
 nifi-commons/nifi-security-kerberos/pom.xml                       | 4 ++++
 .../nifi-elasticsearch-test-utils/pom.xml                         | 8 --------
 .../nifi-email-bundle/nifi-email-processors/pom.xml               | 6 ++++++
 pom.xml                                                           | 3 +++
 4 files changed, 13 insertions(+), 8 deletions(-)

diff --git a/nifi-commons/nifi-security-kerberos/pom.xml 
b/nifi-commons/nifi-security-kerberos/pom.xml
index 41dccea5be..61311de752 100644
--- a/nifi-commons/nifi-security-kerberos/pom.xml
+++ b/nifi-commons/nifi-security-kerberos/pom.xml
@@ -53,6 +53,10 @@
                     <groupId>org.slf4j</groupId>
                     <artifactId>slf4j-reload4j</artifactId>
                 </exclusion>
+                <exclusion>
+                    <groupId>junit</groupId>
+                    <artifactId>junit</artifactId>
+                </exclusion>
             </exclusions>
         </dependency>
     </dependencies>
diff --git 
a/nifi-extension-bundles/nifi-elasticsearch-bundle/nifi-elasticsearch-test-utils/pom.xml
 
b/nifi-extension-bundles/nifi-elasticsearch-bundle/nifi-elasticsearch-test-utils/pom.xml
index 55ed35ca53..f723be37d6 100644
--- 
a/nifi-extension-bundles/nifi-elasticsearch-bundle/nifi-elasticsearch-test-utils/pom.xml
+++ 
b/nifi-extension-bundles/nifi-elasticsearch-bundle/nifi-elasticsearch-test-utils/pom.xml
@@ -73,13 +73,5 @@ language governing permissions and limitations under the 
License. -->
             <artifactId>junit-jupiter-api</artifactId>
             <scope>compile</scope>
         </dependency>
-        <dependency>
-            <!-- testcontainers requires elements JUnit 4 (even when running 
in JUnit 5 mode), expected to be removed in 2.x
-                see 
https://github.com/testcontainers/testcontainers-java/issues/970
-             -->
-            <groupId>org.junit.vintage</groupId>
-            <artifactId>junit-vintage-engine</artifactId>
-            <scope>compile</scope>
-        </dependency>
     </dependencies>
 </project>
\ No newline at end of file
diff --git 
a/nifi-extension-bundles/nifi-email-bundle/nifi-email-processors/pom.xml 
b/nifi-extension-bundles/nifi-email-bundle/nifi-email-processors/pom.xml
index 6ccc83598f..83fcc2a9df 100644
--- a/nifi-extension-bundles/nifi-email-bundle/nifi-email-processors/pom.xml
+++ b/nifi-extension-bundles/nifi-email-bundle/nifi-email-processors/pom.xml
@@ -101,6 +101,12 @@
             <artifactId>greenmail</artifactId>
             <version>2.1.7</version>
             <scope>test</scope>
+            <exclusions>
+                <exclusion>
+                    <groupId>junit</groupId>
+                    <artifactId>junit</artifactId>
+                </exclusion>
+            </exclusions>
         </dependency>
     </dependencies>
 </project>
diff --git a/pom.xml b/pom.xml
index 59fd303737..3983540c09 100644
--- a/pom.xml
+++ b/pom.xml
@@ -931,6 +931,9 @@
                                     <excludes>
                                         <!-- JUnit 5 is the preferred test 
framework -->
                                         <exclude>org.testng:testng</exclude>
+                                        <!-- JUnit 4 should not be used -->
+                                        <exclude>junit:junit</exclude>
+                                        
<exclude>org.junit.vintage:junit-vintage-engine</exclude>
                                         <!-- Cat-X Deps -->
                                         
<exclude>org.json:json:(,20240303):compile</exclude>
                                         
<exclude>c3p0:c3p0:*:*:compile</exclude>

Reply via email to