Skip to content

[MCHANGES-462] Remove Hamcrest dependency to avoid dependency analyzer warning#105

Merged
elharo merged 6 commits intomasterfrom
hamcrest
Dec 30, 2024
Merged

[MCHANGES-462] Remove Hamcrest dependency to avoid dependency analyzer warning#105
elharo merged 6 commits intomasterfrom
hamcrest

Conversation

@elharo
Copy link
Copy Markdown
Contributor

@elharo elharo commented Dec 30, 2024

I think I finally understand why the dependency analyzer has such a tizzy about hamcrest dependencies. 3.0 and 1.3 seem to have put different classes in different artifacts, and JUnit 4 depends on Hamcrest 1.3. As long as we match the Hamcrest version to the JUnit version everything's hunky dory. However if we let dependabot or anything else upgrade to Hamcrest 3, things go haywire.

See MDEP-715

@elharo elharo changed the title Match Hamcrest versioon to JUnit [[MCHANGES-462]] Match Hamcrest version to JUnit Dec 30, 2024
@elharo elharo changed the title [[MCHANGES-462]] Match Hamcrest version to JUnit [MCHANGES-462] Match Hamcrest version to JUnit Dec 30, 2024
@elharo elharo marked this pull request as ready for review December 30, 2024 15:44
Copy link
Copy Markdown
Member

@slawekjaranowski slawekjaranowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should use org.hamcrest:hamcrest and exclude hamcrest-core from junit dependencies.

@elharo
Copy link
Copy Markdown
Contributor Author

elharo commented Dec 30, 2024

We should use org.hamcrest:hamcrest and exclude hamcrest-core from junit dependencies.

Better yet, we can just remove the hamcrest dependency completely. There's only one trivial usage in this plugin.

Copy link
Copy Markdown
Member

@slawekjaranowski slawekjaranowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update PR and jira title to according change does.

@elharo elharo changed the title [MCHANGES-462] Match Hamcrest version to JUnit [MCHANGES-462] Remvoe Hamcrest dependency to avoid dependency analyzer warning Dec 30, 2024
@elharo elharo changed the title [MCHANGES-462] Remvoe Hamcrest dependency to avoid dependency analyzer warning [MCHANGES-462] Remove Hamcrest dependency to avoid dependency analyzer warning Dec 30, 2024
@elharo
Copy link
Copy Markdown
Contributor Author

elharo commented Dec 30, 2024

Updated title. This is one of several changes to address MCHANGES-462

@elharo elharo merged commit 7022ef3 into master Dec 30, 2024
@elharo elharo deleted the hamcrest branch December 30, 2024 16:30
@slawekjaranowski slawekjaranowski added this to the 3.0.0-M3 milestone May 11, 2025
@jira-importer
Copy link
Copy Markdown

Resolve #357

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants