Skip to content

Commit 5c5ad58

Browse files
authored
Merge pull request #414 from avaje/feature/jdk-23-mockito-byte-buddy
Support Byte-Buddy / Mockito with JDK 23 via -Dnet.bytebuddy.experimental=true
2 parents e8703ef + a085c08 commit 5c5ad58

File tree

3 files changed

+25
-16
lines changed

3 files changed

+25
-16
lines changed

http-client-gson-adapter/pom.xml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,6 @@
2424
<scope>provided</scope>
2525
</dependency>
2626

27-
<!-- test dependencies -->
28-
29-
<dependency>
30-
<groupId>io.avaje</groupId>
31-
<artifactId>junit</artifactId>
32-
<version>1.4</version>
33-
<scope>test</scope>
34-
</dependency>
35-
3627
</dependencies>
3728

3829
</project>

http-client/pom.xml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,6 @@
5656
<scope>test</scope>
5757
</dependency>
5858

59-
<dependency>
60-
<groupId>io.avaje</groupId>
61-
<artifactId>junit</artifactId>
62-
<version>1.4</version>
63-
<scope>test</scope>
64-
</dependency>
65-
6659
<dependency>
6760
<groupId>io.javalin</groupId>
6861
<artifactId>javalin</artifactId>
@@ -93,6 +86,19 @@
9386

9487
<build>
9588
<plugins>
89+
<plugin>
90+
<groupId>org.apache.maven.plugins</groupId>
91+
<artifactId>maven-failsafe-plugin</artifactId>
92+
<version>3.2.5</version>
93+
</plugin>
94+
<plugin>
95+
<groupId>org.apache.maven.plugins</groupId>
96+
<artifactId>maven-surefire-plugin</artifactId>
97+
<version>3.2.5</version>
98+
<configuration>
99+
<argLine>-XX:+EnableDynamicAgentLoading -Dnet.bytebuddy.experimental=true</argLine>
100+
</configuration>
101+
</plugin>
96102
<plugin>
97103
<groupId>org.apache.maven.plugins</groupId>
98104
<artifactId>maven-compiler-plugin</artifactId>

pom.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,18 @@
2626
</properties>
2727

2828
<dependencies>
29+
<dependency>
30+
<groupId>net.bytebuddy</groupId>
31+
<artifactId>byte-buddy</artifactId>
32+
<version>1.14.13</version>
33+
<scope>test</scope>
34+
</dependency>
35+
<dependency>
36+
<groupId>net.bytebuddy</groupId>
37+
<artifactId>byte-buddy-agent</artifactId>
38+
<version>1.14.13</version>
39+
<scope>test</scope>
40+
</dependency>
2941
<dependency>
3042
<groupId>io.avaje</groupId>
3143
<artifactId>junit</artifactId>

0 commit comments

Comments
 (0)