Skip to content

Commit 0fd5054

Browse files
Powermock/Mockito updates
updating mockito to the latest 3.x version updating powermock to the latest 2.x version mockito 4.x not yet supported by powermock, issue linked in pom. Adding new exclusions to deconflict updated references.
1 parent 56b11a8 commit 0fd5054

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

pom.xml

+17-3
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
135135
<version.jmh>1.34</version.jmh>
136136
<!-- Note: powermock v2.0.8 doesn't exist. v2.0.9+ requires mockito-core v3+, which requires Java 8 -->
137-
<version.powermock>2.0.7</version.powermock>
137+
<version.powermock>2.0.9</version.powermock>
138138
<version.spotbugs>4.5.2</version.spotbugs>
139139
<version.spotbugs.maven>4.5.2.0</version.spotbugs.maven>
140140
<version.surefire>3.0.0-M5</version.surefire>
@@ -342,6 +342,10 @@
342342
<groupId>org.javassist</groupId>
343343
<artifactId>javassist</artifactId>
344344
</exclusion>
345+
<exclusion>
346+
<groupId>org.mockito</groupId>
347+
<artifactId>mockito-core</artifactId>
348+
</exclusion>
345349
</exclusions>
346350
</dependency>
347351
<!-- The following imported solely so we can exclude its dependency on: org.objenesis:objenesis, which conflicts with
@@ -357,8 +361,10 @@
357361
<dependency>
358362
<groupId>org.mockito</groupId>
359363
<artifactId>mockito-core</artifactId>
360-
<!-- mockito-core v3.0.0+ requires Java 8 -->
361-
<version>2.28.2</version>
364+
<!-- Cannot upgrade past 3.x due to PowerMock compatibility
365+
https://github.com/powermock/powermock/issues/1109
366+
-->
367+
<version>3.12.4</version>
362368
<scope>test</scope>
363369
</dependency>
364370
<dependency>
@@ -372,6 +378,14 @@
372378
<groupId>org.javassist</groupId>
373379
<artifactId>javassist</artifactId>
374380
</exclusion>
381+
<exclusion>
382+
<groupId>net.bytebuddy</groupId>
383+
<artifactId>byte-buddy</artifactId>
384+
</exclusion>
385+
<exclusion>
386+
<groupId>net.bytebuddy</groupId>
387+
<artifactId>byte-buddy-agent</artifactId>
388+
</exclusion>
375389
</exclusions>
376390
</dependency>
377391
<dependency>

0 commit comments

Comments
 (0)