From 6d5a31dbd11fcbf769dc1f47fd6134114f755e07 Mon Sep 17 00:00:00 2001 From: Vincent Paturet Date: Fri, 25 Sep 2026 08:21:36 +0200 Subject: [PATCH] Pin JUnit to 5.x on the Java 11 line JUnit 6 requires Java 17, but master compiles for Java 11, so test compilation fails with 'class file has wrong version 61.0, should be 55.0'. Revert junit.version to 5.14.4 (reverts #250) and add a Renovate rule restricting org.junit to <6.0.0. --- pom.xml | 2 +- renovate.json | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 0dce0d5c..1018401c 100644 --- a/pom.xml +++ b/pom.xml @@ -88,7 +88,7 @@ 3.27.7 - 6.1.3 + 5.14.4 1.6.13 diff --git a/renovate.json b/renovate.json index 79674fb4..8ffc5493 100644 --- a/renovate.json +++ b/renovate.json @@ -9,6 +9,11 @@ "description": "Pin CXF XJC to 4.0.x - 4.1.x changes code generation for xsd:list with enum itemType (JAXB RI #1819)", "matchPackagePatterns": ["^org\\.apache\\.cxf"], "allowedVersions": "<4.1.0" + }, + { + "description": "Pin JUnit to 5.x - JUnit 6 requires Java 17, this library targets Java 11", + "matchPackagePatterns": ["^org\\.junit"], + "allowedVersions": "<6.0.0" } ] } \ No newline at end of file