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

Prevent spotbugs-annotations from transitively leaking as dependency #53

Merged
merged 1 commit into from
Oct 3, 2024

Conversation

mstruk
Copy link

@mstruk mstruk commented Oct 3, 2024

This change removes the need for other projects that package this dependency (e.g. strimzi/strimzi-kafka-operator) to explicitly exclude the spotbug-annotations from kafka-quotas-plugin dependency in their poms.

spotbugs-annotations is a test-time dependency, but due to the mechanics of how it operates it is declared as compile time dependency which causes it to be automatically transitively pulled in when this project is referenced as a dependency of another project. By making it provided scoped it is still present at compile time so it can perform its function during testing but it will not automatically be pulled into the using projects as a transitive dependency.

…ependency into other projects that use this project
@scholzj scholzj added this to the 0.4.0 milestone Oct 3, 2024
Copy link
Member

@scholzj scholzj left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks. Could you please fix the DCO signoff?

@scholzj scholzj requested a review from a team October 3, 2024 12:16
Copy link
Member

@im-konge im-konge left a comment

Choose a reason for hiding this comment

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

LGTM, thanks :)

@scholzj scholzj merged commit bdcf7d1 into strimzi:main Oct 3, 2024
7 checks passed
@mstruk
Copy link
Author

mstruk commented Oct 3, 2024

LGTM. Thanks. Could you please fix the DCO signoff?

Sorry, didn't notice this. But it was merged I see. Just for the record, consider it signed off ... Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants