Skip to content

Commit 5e76640

Browse files
authored
Revert "Add mockito-core javaagent for future Java compatibility" (jenkinsci#1244)
Causes plugin BOM tests to fail with a JVM crash. Compatibility with a future condition is much less important than having tests that run successfully now. This reverts commit bfde394.
1 parent a3a99b0 commit 5e76640

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

pom.xml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -270,28 +270,13 @@
270270

271271
<build>
272272
<plugins>
273-
<plugin>
274-
<!-- Needed by the mockito-core properties reference in surefire -->
275-
<groupId>org.apache.maven.plugins</groupId>
276-
<artifactId>maven-dependency-plugin</artifactId>
277-
<executions>
278-
<execution>
279-
<goals>
280-
<goal>properties</goal>
281-
</goals>
282-
</execution>
283-
</executions>
284-
</plugin>
285273
<plugin>
286274
<groupId>org.apache.maven.plugins</groupId>
287275
<artifactId>maven-surefire-plugin</artifactId>
288276
<configuration>
289277
<systemPropertyVariables>
290278
<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>
291279
</systemPropertyVariables>
292-
<!-- Add mockito javaagent for the MockitoJUnitRunner in Java 21 and beyond -->
293-
<!-- https://javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/Mockito.html#0.3 -->
294-
<argLine>@{argLine} -javaagent:${org.mockito:mockito-core:jar}</argLine>
295280
</configuration>
296281
</plugin>
297282
<plugin>

0 commit comments

Comments
 (0)