Skip to content

Commit

Permalink
Add Mockito as agent in Java 21+
Browse files Browse the repository at this point in the history
  • Loading branch information
acogoluegnes committed Oct 3, 2024
1 parent 32a40a7 commit 42f5ab4
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
<micrometer-tracing-test.version>1.3.4</micrometer-tracing-test.version>
<micrometer-docs-generator.version>1.0.4</micrometer-docs-generator.version>
<maven.compiler.plugin.version>3.13.0</maven.compiler.plugin.version>
<maven.dependency.plugin.version>3.8.0</maven.dependency.plugin.version>
<maven-surefire-plugin.version>3.5.0</maven-surefire-plugin.version>
<maven-resources-plugin.version>3.3.1</maven-resources-plugin.version>
<maven-source-plugin.version>3.3.1</maven-source-plugin.version>
Expand Down Expand Up @@ -291,6 +292,19 @@
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>${maven.dependency.plugin.version}</version>
<executions>
<execution>
<goals>
<goal>properties</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version>
Expand Down Expand Up @@ -579,7 +593,7 @@
<jdk>[21,)</jdk>
</activation>
<properties>
<test-arguments>-Xshare:off -XX:+EnableDynamicAgentLoading</test-arguments>
<test-arguments>-Xshare:off -javaagent:${org.mockito:mockito-core:jar}</test-arguments>
</properties>
</profile>

Expand Down

0 comments on commit 42f5ab4

Please sign in to comment.