Skip to content

Commit 1025cb3

Browse files
Update mockito version override (old) to let quarkus-bom bring right version (#2233)
1 parent 868fa09 commit 1025cb3

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

pom.xml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@
1212
<quarkus.platform.version>3.28.3</quarkus.platform.version>
1313
<!-- miscellaneous -->
1414
<wiremock.version>3.4.2</wiremock.version>
15-
<mockito.version>5.12.0</mockito.version>
15+
<!-- 17-Oct-2025, tatu: Although quarkus-bom provides for Mockito version,
16+
matching property is NOT available when we import it (instead of using as parent pom.
17+
But we need version for "maven-surefire-plugin" config! So we have no choice
18+
but duplicate this, unfortunately & need to keep things in sync manually
19+
-->
20+
<mockito.version>5.19.0</mockito.version>
1621
<failsafe.useModulePath>false</failsafe.useModulePath>
1722
<!-- Integration test props -->
1823
<!-- Please update github workflows that build docker images if changing image/additional tags -->
@@ -46,7 +51,7 @@
4651
<!-- Testing -->
4752
<skipTests>false</skipTests>
4853
<skipUnitTests>${skipTests}</skipUnitTests>
49-
<surefire-plugin.version>3.5.3</surefire-plugin.version>
54+
<surefire-plugin.version>3.5.4</surefire-plugin.version>
5055
<skipITs>false</skipITs>
5156
</properties>
5257
<dependencyManagement>
@@ -304,7 +309,11 @@
304309
<artifactId>maven-surefire-plugin</artifactId>
305310
<version>${surefire-plugin.version}</version>
306311
<configuration>
307-
<argLine>-Xmx4g</argLine>
312+
<!-- 17-Oct-2025, tatu: agent settings needed to get rid of "inline mock" warning by Mockito;
313+
leading to duplication of "mockito.version".
314+
See: https://github.com/stargate/data-api/pull/2233
315+
-->
316+
<argLine>-Xmx4g -javaagent:${settings.localRepository}/org/mockito/mockito-core/${mockito.version}/mockito-core-${mockito.version}.jar</argLine>
308317
<systemPropertyVariables>
309318
<java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
310319
<maven.home>${maven.home}</maven.home>

0 commit comments

Comments
 (0)