[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
This commit is contained in:
Lenny Primak 2023-06-23 05:24:18 -04:00 committed by GitHub
parent 917e9561cf
commit b050257c05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 7 deletions

15
pom.xml
View File

@ -133,6 +133,7 @@ under the License.
<commonsIoVersion>2.11.0</commonsIoVersion> <commonsIoVersion>2.11.0</commonsIoVersion>
<commonsLangVersion>3.12.0</commonsLangVersion> <commonsLangVersion>3.12.0</commonsLangVersion>
<junitVersion>4.13.2</junitVersion> <junitVersion>4.13.2</junitVersion>
<hamcrestVersion>2.2</hamcrestVersion>
<mockitoVersion>4.11.0</mockitoVersion> <mockitoVersion>4.11.0</mockitoVersion>
<!-- plexus 2.1.1 is broken, no new release exists yet (nor will exist) --> <!-- plexus 2.1.1 is broken, no new release exists yet (nor will exist) -->
<plexusVersion>2.1.0</plexusVersion> <plexusVersion>2.1.0</plexusVersion>
@ -525,7 +526,13 @@ under the License.
<dependency> <dependency>
<groupId>org.hamcrest</groupId> <groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId> <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> <scope>test</scope>
</dependency> </dependency>
<dependency> <dependency>
@ -533,12 +540,6 @@ under the License.
<artifactId>junit</artifactId> <artifactId>junit</artifactId>
<version>${junitVersion}</version> <version>${junitVersion}</version>
<scope>test</scope> <scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-core</artifactId>
</exclusion>
</exclusions>
</dependency> </dependency>
</dependencies> </dependencies>
<!--bootstrap-start-comment--> <!--bootstrap-start-comment-->