[MNG-7818] Removed exclusion of hamcrest from JUnit 4 (#1178)
Fix hamcrest versiob to 2.2 but do not remove transitive dep for downstream consumers.
----
https://issues.apache.org/jira/browse/MNG-7818
diff --git a/pom.xml b/pom.xml
index 1579e52..f3cca0c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -133,6 +133,7 @@
<commonsIoVersion>2.11.0</commonsIoVersion>
<commonsLangVersion>3.12.0</commonsLangVersion>
<junitVersion>4.13.2</junitVersion>
+ <hamcrestVersion>2.2</hamcrestVersion>
<mockitoVersion>4.11.0</mockitoVersion>
<!-- plexus 2.1.1 is broken, no new release exists yet (nor will exist) -->
<plexusVersion>2.1.0</plexusVersion>
@@ -525,7 +526,13 @@
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
- <version>2.2</version>
+ <version>${hamcrestVersion}</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.hamcrest</groupId>
+ <artifactId>hamcrest-core</artifactId>
+ <version>${hamcrestVersion}</version>
<scope>test</scope>
</dependency>
<dependency>
@@ -533,12 +540,6 @@
<artifactId>junit</artifactId>
<version>${junitVersion}</version>
<scope>test</scope>
- <exclusions>
- <exclusion>
- <groupId>org.hamcrest</groupId>
- <artifactId>hamcrest-core</artifactId>
- </exclusion>
- </exclusions>
</dependency>
</dependencies>
<!--bootstrap-start-comment-->