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

ramanathan1504 pushed a commit to branch ramanathan1504-issue-2351
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git

commit 8557f1470756d638abbe5b0a1470e808999a25c3
Author: Ramanathan <[email protected]>
AuthorDate: Sun May 10 15:16:57 2026 +0530

    Restrict JUnit dependencies to below version 6.x to maintain compatib… 
(#4120)
    
    * Restrict JUnit dependencies to below version 6.x to maintain 
compatibility with Java 8
    
    * Update JUnit dependency restrictions for compatibility with Java 8 on 2.x
---
 .github/dependabot.yaml | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml
index 3dfa7865b7..5c0cd9abb2 100644
--- a/.github/dependabot.yaml
+++ b/.github/dependabot.yaml
@@ -131,6 +131,15 @@ updates:
       # Kafka 4.x is not compatible with our appender
       - dependency-name: "org.apache.kafka:*"
         versions: [ "[4,)" ]
+      # Keep JUnit below 6.x on 2.x: JUnit 6+ requires Java 17 and breaks Java 
8 test runs
+      - dependency-name: "org.junit:junit-bom"
+        versions: [ "[6,)" ]
+      - dependency-name: "org.junit.jupiter:*"
+        versions: [ "[6,)" ]
+      - dependency-name: "org.junit.platform:*"
+        versions: [ "[6,)" ]
+      - dependency-name: "org.junit.vintage:*"
+        versions: [ "[6,)" ]
 
   - package-ecosystem: maven
     directories:

Reply via email to