This is an automated email from the ASF dual-hosted git repository.

cstamas pushed a commit to branch maven-3.9.x
in repository https://gitbox.apache.org/repos/asf/maven.git


The following commit(s) were added to refs/heads/maven-3.9.x by this push:
     new b050257c0 [MNG-7818] Removed exclusion of hamcrest from JUnit 4 (#1178)
b050257c0 is described below

commit b050257c05fa6978019d59adfddd0e32a35d1c20
Author: Lenny Primak <[email protected]>
AuthorDate: Fri Jun 23 05:24:18 2023 -0400

    [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
---
 pom.xml | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/pom.xml b/pom.xml
index 1579e52eb..f3cca0ca9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -133,6 +133,7 @@ under the License.
     <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 @@ under the License.
       <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 @@ under the License.
         <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-->

Reply via email to