Skip to content

Commit 32340a3

Browse files
fix: Pin byte-buddy(-agent) version to 1.14.19 to workaround Mockito issue (#1060)
* fix: Add the net.bytebuddy.experimental=true system property Workaround to make Mockito tests to pass under Java 21 Signed-off-by: Ryan Prayogo <[email protected]> * fix: Pin byte-buddy and byte-buddy-agent to a newer version Signed-off-by: Ryan Prayogo <[email protected]> * chore: Fix maven warning about deprecated expression Signed-off-by: Ryan Prayogo <[email protected]> * chore: Add comments around the Mockito workaround Signed-off-by: Ryan Prayogo <[email protected]> * Update pom.xml Signed-off-by: Todd Baert <[email protected]> --------- Signed-off-by: Ryan Prayogo <[email protected]> Signed-off-by: Todd Baert <[email protected]> Co-authored-by: Todd Baert <[email protected]>
1 parent b7ed041 commit 32340a3

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

pom.xml

+19-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<junit.jupiter.version>5.11.0</junit.jupiter.version>
1414
<!-- exclusion expression for e2e tests -->
1515
<testExclusions>**/e2e/*.java</testExclusions>
16-
<module-name>${groupId}.${artifactId}</module-name>
16+
<module-name>${project.groupId}.${project.artifactId}</module-name>
1717
</properties>
1818

1919
<name>OpenFeature Java SDK</name>
@@ -151,6 +151,24 @@
151151
<dependencyManagement>
152152
<dependencies>
153153

154+
<!-- Start mockito workaround -->
155+
<!-- https://github.com/mockito/mockito/issues/3121 -->
156+
<!-- These are transitive dependencies of mockito we are forcing -->
157+
<dependency>
158+
<groupId>net.bytebuddy</groupId>
159+
<artifactId>byte-buddy</artifactId>
160+
<version>1.14.19</version>
161+
<scope>test</scope>
162+
</dependency>
163+
164+
<dependency>
165+
<groupId>net.bytebuddy</groupId>
166+
<artifactId>byte-buddy-agent</artifactId>
167+
<version>1.14.19</version>
168+
<scope>test</scope>
169+
</dependency>
170+
<!-- End mockito workaround-->
171+
154172
<dependency>
155173
<groupId>io.cucumber</groupId>
156174
<artifactId>cucumber-bom</artifactId>

0 commit comments

Comments
 (0)