Skip to content
8 changes: 6 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
<skip.tests>false</skip.tests>
<!-- this will throw an error if we use wrong apis -->
<maven.compiler.release>11</maven.compiler.release>
<org.mockito.jar>${settings.localRepository}/org/mockito/mockito-core/${org.mockito.version}/mockito-core-${org.mockito.version}.jar</org.mockito.jar>
<org.mockito.agent.argline>-javaagent:${org.mockito.jar}</org.mockito.agent.argline>
</properties>

<name>OpenFeature Java SDK</name>
Expand Down Expand Up @@ -300,10 +302,9 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>3.5.4</version>
<configuration>
<forkCount>1</forkCount>
<reuseForks>false</reuseForks>
<argLine>
${surefireArgLine}
${org.mockito.agent.argline}
--add-opens java.base/java.util=ALL-UNNAMED
--add-opens java.base/java.lang=ALL-UNNAMED
</argLine>
Expand All @@ -321,6 +322,7 @@
<configuration>
<argLine>
${surefireArgLine}
${org.mockito.agent.argline}
</argLine>
</configuration>
</plugin>
Expand Down Expand Up @@ -364,6 +366,7 @@
<include>**/*CT.java</include>
</includes>
<failIfNoTests>true</failIfNoTests>
<argLine>${org.mockito.agent.argline}</argLine>
</configuration>
</execution>
</executions>
Expand Down Expand Up @@ -740,6 +743,7 @@
<version>3.5.4</version>
<configuration>
<argLine>
${org.mockito.agent.argline}
${surefireArgLine}
</argLine>
</configuration>
Expand Down
Loading