This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-parent.git
The following commit(s) were added to refs/heads/master by this push:
new b3d5815 Add mockito to dependencyManagement (#568)
b3d5815 is described below
commit b3d5815529d5295944931413e52dd79dd501321a
Author: Arnout Engelen <[email protected]>
AuthorDate: Thu Jan 2 18:54:34 2025 +0100
Add mockito to dependencyManagement (#568)
So we only need to maintain the version to be the latest that supports
Java 8 here.
See also https://github.com/apache/commons-bcel/pull/400
---
.github/dependabot.yml | 4 ++++
pom.xml | 7 +++++++
2 files changed, 11 insertions(+)
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
index 1bf79d5..a31638f 100644
--- a/.github/dependabot.yml
+++ b/.github/dependabot.yml
@@ -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:
diff --git a/pom.xml b/pom.xml
index 7f3d5c5..e0577c5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -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>
@@ -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>