From 3106ad133a2c507bb5fe7eaa22b71f90b123a2f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arnaud=20Cogolu=C3=A8gnes?= Date: Thu, 3 Oct 2024 10:33:57 +0200 Subject: [PATCH] Use Mockito as agent on Java 21+ --- pom.xml | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index bbcf9c61..7a9e2952 100644 --- a/pom.xml +++ b/pom.xml @@ -84,6 +84,7 @@ 3.1.3 3.4.2 3.2.1 + 3.8.0 3.5.0 3.5.0 3.6.0 @@ -277,6 +278,19 @@ + + org.apache.maven.plugins + maven-dependency-plugin + ${maven-dependency-plugin.version} + + + + properties + + + + + org.apache.maven.plugins maven-surefire-plugin @@ -491,17 +505,25 @@ 4.11.0 + + jvm-test-arguments-below-java-21 + + [11,21) + + + -Xshare:off + + jvm-test-arguments-java-21-and-more [21,) - -XX:+EnableDynamicAgentLoading + -Xshare:off -javaagent:${org.mockito:mockito-core:jar} - extensions