From e4348028632c16d029f17bd0153067f933dd77a0 Mon Sep 17 00:00:00 2001
From: John Patrick <142304+nhojpatrick@users.noreply.github.com>
Date: Tue, 11 Feb 2020 19:18:45 +0000
Subject: [PATCH 1/3] hamcrest v2.2
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 9f3db05a2b..f6e3725901 100644
--- a/pom.xml
+++ b/pom.xml
@@ -256,7 +256,7 @@
org.hamcrest
- hamcrest-core
+ hamcrest
2.2
test
From 4c12564728516657199ed55b7e1e4f9ee5747925 Mon Sep 17 00:00:00 2001
From: John Patrick <142304+nhojpatrick@users.noreply.github.com>
Date: Tue, 25 Feb 2020 07:10:26 +0000
Subject: [PATCH 2/3] hamcrest v1.3 exclusions
---
pom.xml | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/pom.xml b/pom.xml
index f6e3725901..1754ed1ada 100644
--- a/pom.xml
+++ b/pom.xml
@@ -247,12 +247,24 @@
org.junit.vintage
junit-vintage-engine
test
+
+
+ org.hamcrest
+ hamcrest-core
+
+
org.mockito
mockito-core
2.28.2
test
+
+
+ org.hamcrest
+ hamcrest-core
+
+
org.hamcrest
From 38d33991149dc0fb72f96f3cc6ca36409d58badd Mon Sep 17 00:00:00 2001
From: John Patrick <142304+nhojpatrick@users.noreply.github.com>
Date: Tue, 25 Feb 2020 09:44:29 +0000
Subject: [PATCH 3/3] Switch to using Hamcrest directly
---
.../codehaus/mojo/versions/api/DefaultVersionsHelperTest.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/test/java/org/codehaus/mojo/versions/api/DefaultVersionsHelperTest.java b/src/test/java/org/codehaus/mojo/versions/api/DefaultVersionsHelperTest.java
index 3cf61215ae..9a3c6a13ca 100644
--- a/src/test/java/org/codehaus/mojo/versions/api/DefaultVersionsHelperTest.java
+++ b/src/test/java/org/codehaus/mojo/versions/api/DefaultVersionsHelperTest.java
@@ -47,7 +47,7 @@
import static java.util.Arrays.asList;
import static org.hamcrest.MatcherAssert.assertThat;
-import static org.junit.matchers.JUnitMatchers.hasItems;
+import static org.hamcrest.core.IsIterableContaining.hasItems;
import static org.mockito.Mockito.any;
import static org.mockito.Mockito.anyList;
import static org.mockito.Mockito.mock;