Skip to content

Commit

Permalink
Merge pull request #323 from groovy/mockito-agent
Browse files Browse the repository at this point in the history
Add Mockito agent jar to avoid warning with Java 21+
  • Loading branch information
keeganwitt authored Jan 1, 2025
2 parents 6c7ebc2 + ffbf2cd commit 441f0db
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,13 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>${dependencyPluginVersion}</version>
<executions>
<execution>
<goals>
<goal>properties</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down Expand Up @@ -303,6 +310,9 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${surefirePluginVersion}</version>
<configuration>
<argLine>@{argLine} -javaagent:${org.mockito:mockito-core:jar}</argLine>
</configuration>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
Expand Down

0 comments on commit 441f0db

Please sign in to comment.