Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deprecated hamcrest-core and hamcrest-library modules #587

Merged
merged 1 commit into from
May 22, 2023

Conversation

NotMyFault
Copy link
Member

@NotMyFault NotMyFault commented May 21, 2023

Both modules named are deprecated since 2019, in favor of hamcrest where the logic of both modules live on since then.
Consumers are advised to replace hamcrest-x with hamcrest, if not already done.

Copy link
Contributor

@MarkEWaite MarkEWaite left a comment

Choose a reason for hiding this comment

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

Thanks!

@MarkEWaite
Copy link
Contributor

@NotMyFault will this affect users of hamcrest in automated tests of plugins?

If they already have a declared dependency on the deprecated libraries, will they be able to continue to use those libraries even though they are no longer a dependency of Jenkins test harness?

If they don't have a declared dependency on the deprecated libraries, but are using them, will they be able to resolve that by declaring the dependency themselves? I assume they could also resolve the issue by switching to use hamcrest rather than the deprecated libraries.

@NotMyFault
Copy link
Member Author

I assume they could also resolve the issue by switching to use hamcrest rather than the deprecated libraries.

That's the desired approach. It contains the code of both deprecated libraries. Consumers are advised to remove both from their pom and add hamcrest only if not already done.

You can continue using the deprecated libraries for sure, if you add a version to the deprecated libraries overriding the JTH (or any other) dependencies.
That's the undesirable approach, given the modules haven't been touched in 4 years and there's no reason to not move on to hamcrest.

@NotMyFault NotMyFault merged commit d69d1ec into jenkinsci:master May 22, 2023
13 checks passed
@NotMyFault NotMyFault deleted the dead-hamcrest branch May 22, 2023 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants