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

HDDS-9692. Do not include SpotBugs at compile scope. #5603

Merged
merged 2 commits into from
Nov 16, 2023

Conversation

jojochuang
Copy link
Contributor

What changes were proposed in this pull request?

HDDS-9692. Do not include SpotBugs at compile scope.

Please describe your PR in detail:

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-9692

How was this patch tested?

Existing unit tests. This patch has no functional change.

Change-Id: I3e6a3e7840e53096fa498b0b7c7fabd436d41315
Copy link
Contributor

@adoroszlai adoroszlai left a comment

Choose a reason for hiding this comment

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

Thanks @jojochuang for the patch. The change itself looks good. However, even with this change, spotbugs-annotation shows up in THIRD-PARTY.txt, is that expected?

pom.xml Outdated Show resolved Hide resolved
@jojochuang
Copy link
Contributor Author

You can manually remove the dependencies of test and provided scope using command

mvn license:aggregate-add-third-party -Dlicense.excludedScopes=test,provided

@adoroszlai
Copy link
Contributor

@SuppressFBWarnings has retention policy CLASS, so it's preserved in the class file, but not during runtime. So is it OK to use it?

We can replace it with XML-based config, which we already use to suppress several warnings. It is more cumbersome and error-prone, but does not require the dependency.

Some of the warnings can even be fixed. ;)

Copy link
Contributor

@adoroszlai adoroszlai left a comment

Choose a reason for hiding this comment

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

Thanks @jojochuang for the fix.

@adoroszlai adoroszlai merged commit 324aa03 into apache:master Nov 16, 2023
@jojochuang jojochuang deleted the HDDS-9692 branch December 7, 2023 01:29
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.

2 participants