Skip to content

Commit 3ef56c7

Browse files
committed
Update mockito and surefire config
1 parent e10b6b3 commit 3ef56c7

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

pom.xml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
<!-- test dependencies -->
2929
<junit.jupiter.version>5.12.0</junit.jupiter.version>
30-
<mockito.version>5.15.2</mockito.version>
30+
<mockito.version>5.21.0</mockito.version>
3131
<hamcrest.version>3.0</hamcrest.version>
3232
<jmh.version>1.37</jmh.version>
3333

@@ -38,6 +38,7 @@
3838
<jacoco.version>0.8.14</jacoco.version>
3939
<mvn-compiler.version>3.14.1</mvn-compiler.version>
4040
<mvn-clean.version>3.5.0</mvn-clean.version>
41+
<mvn-dependency.version>3.9.0</mvn-dependency.version>
4142
<mvn-deploy.version>3.1.4</mvn-deploy.version>
4243
<mvn-enforcer.version>3.6.2</mvn-enforcer.version>
4344
<mvn-install.version>3.1.4</mvn-install.version>
@@ -145,6 +146,18 @@
145146

146147
<build>
147148
<plugins>
149+
<plugin>
150+
<groupId>org.apache.maven.plugins</groupId>
151+
<artifactId>maven-dependency-plugin</artifactId>
152+
<version>${mvn-dependency.version}</version>
153+
<executions>
154+
<execution>
155+
<goals>
156+
<goal>properties</goal>
157+
</goals>
158+
</execution>
159+
</executions>
160+
</plugin>
148161
<plugin>
149162
<groupId>org.apache.maven.plugins</groupId>
150163
<artifactId>maven-enforcer-plugin</artifactId>
@@ -271,7 +284,7 @@
271284
<artifactId>maven-surefire-plugin</artifactId>
272285
<version>${mvn-surefire.version}</version>
273286
<configuration>
274-
<argLine>@{surefire.jacoco.args} -Dnet.bytebuddy.experimental=true</argLine>
287+
<argLine>@{surefire.jacoco.args} -javaagent:${org.mockito:mockito-core:jar}</argLine>
275288
</configuration>
276289
</plugin>
277290
<plugin>

0 commit comments

Comments
 (0)