File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 291
291
292
292
<build >
293
293
<plugins >
294
+ <plugin >
295
+ <!-- Needed by the mockito-core properties reference in surefire -->
296
+ <groupId >org.apache.maven.plugins</groupId >
297
+ <artifactId >maven-dependency-plugin</artifactId >
298
+ <executions >
299
+ <execution >
300
+ <goals >
301
+ <goal >properties</goal >
302
+ </goals >
303
+ </execution >
304
+ </executions >
305
+ </plugin >
294
306
<plugin >
295
307
<groupId >org.apache.maven.plugins</groupId >
296
308
<artifactId >maven-surefire-plugin</artifactId >
297
309
<configuration >
298
310
<systemPropertyVariables >
299
311
<org .jenkinsci.plugins.gitclient.verifier.SshHostKeyVerificationStrategy.jgit_known_hosts_file>${project.build.directory} /ssh/know_hosts</org .jenkinsci.plugins.gitclient.verifier.SshHostKeyVerificationStrategy.jgit_known_hosts_file>
300
312
</systemPropertyVariables >
313
+ <!-- Add mockito javaagent for the MockitoJUnitRunner in Java 21 and beyond -->
314
+ <!-- https://javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/Mockito.html#0.3 -->
315
+ <argLine >@{argLine} -javaagent:${org.mockito:mockito-core:jar} </argLine >
301
316
</configuration >
302
317
</plugin >
303
318
<plugin >
You can’t perform that action at this time.
0 commit comments