This is an automated email from the ASF dual-hosted git repository. slachiewicz pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-parent.git
commit e9f710e06b51ab8571c3234d171396257d0c0b23 Author: Sylwester Lachiewicz <[email protected]> AuthorDate: Tue Nov 3 19:43:35 2026 +0000 Rename the JUnit version property to versions.junit versions.junit5 stays as a read-only alias for the poms and IT scripts that read it. A Maven 4 line on Java 17 can set versions.junit to 6.x. --- pom.xml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 84c4e81..fb8f320 100644 --- a/pom.xml +++ b/pom.xml @@ -986,7 +986,10 @@ under the License. <version.palantirJavaFormat>2.102.0</version.palantirJavaFormat> <!-- DO NOT UPGRADE to 4: incompatible with Maven 3 --> <version.plexus-xml>3.1.0</version.plexus-xml> - <versions.junit5>5.14.4</versions.junit5> + <!-- 5.x while Maven 3 plugins build on JDK 8; JUnit 6 needs Java 17, and a Java 17 project can set 6.x here --> + <versions.junit>5.14.4</versions.junit> + <!-- deprecated: read versions.junit instead; setting this one no longer changes the JUnit version --> + <versions.junit5>${versions.junit}</versions.junit5> <version.maven-shared-resources>6</version.maven-shared-resources> <project.build.outputTimestamp>2026-09-17T20:32:40Z</project.build.outputTimestamp> </properties> @@ -1017,7 +1020,7 @@ under the License. <dependency> <groupId>org.junit</groupId> <artifactId>junit-bom</artifactId> - <version>${versions.junit5}</version> + <version>${versions.junit}</version> <type>pom</type> <scope>import</scope> </dependency>
