Skip to content

Commit

Permalink
Add mockito to dependencyManagement (#568)
Browse files Browse the repository at this point in the history
So we only need to maintain the version to be the latest that supports
Java 8 here.

See also apache/commons-bcel#400
  • Loading branch information
raboof authored Jan 2, 2025
1 parent ef787a0 commit b3d5815
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ updates:
# org.apache.felix:maven-bundle-plugin does not yet support bndlib 7,
# and bndlib 7.1 requires Java 17
update-types: [ "sem-ver:major" ]
- dependency-name: "org.mockito:mockito-core"
# Next major version (5.x) requires Java 11
# https://github.com/mockito/mockito/releases/tag/v5.0.0
update-types: [ "sem-ver:major" ]
- package-ecosystem: "github-actions"
directory: "/"
schedule:
Expand Down
7 changes: 7 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@
<commons.junit.version>5.11.4</commons.junit.version>
<!-- JUnit Pioneer 2 requires Java 11 -->
<commons.junit-pioneer.version>1.9.1</commons.junit-pioneer.version>
<commons.mockito.version>4.11.0</commons.mockito.version>
<commons.jmh.version>1.37</commons.jmh.version>
<commons.asm.version>9.7.1</commons.asm.version>
<commons.taglist.version>3.2.1</commons.taglist.version>
Expand Down Expand Up @@ -349,6 +350,12 @@
<artifactId>junit-pioneer</artifactId>
<version>${commons.junit-pioneer.version}</version>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockit-core</artifactId>
<version>${commons.mockito.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
</dependencyManagement>
<build>
Expand Down

0 comments on commit b3d5815

Please sign in to comment.