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 spotbugsXmlOutput setting #722

Merged

Conversation

MarkEWaite
Copy link
Contributor

Remove deprecated spotbugsXmlOutput setting

https://spotbugs.github.io/spotbugs-maven-plugin/spotbugs-mojo.html says that it is deprecated and gives no reason for the deprecation. Since the value was faluse, it seems safe to remove the setting.

Fixes #716

#716 is the issue report.

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests - that demonstrates feature works or fixes the issue

https://spotbugs.github.io/spotbugs-maven-plugin/spotbugs-mojo.html
says that it is deprecated and gives no reason for the deprecation.
Since the value was faluse, it seems safe to remove the setting.

Fixes jenkinsci#716

jenkinsci#716 is the issue report.
@MarkEWaite MarkEWaite added the bug label Mar 16, 2023
@@ -680,7 +680,6 @@
presence of this file.
-->
<xmlOutput>true</xmlOutput>
<spotbugsXmlOutput>false</spotbugsXmlOutput>
Copy link
Member

Choose a reason for hiding this comment

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

Based on my local tests, deleting this entire <configuration> block still gives us the result we want (generating a spotbugsXml.xml file for Jenkins), so I think we should just delete the whole block: the less code there is to maintain, the better. The comment about excludeFilterFile is valuable, but it could just be moved to below <phase>verify</phase>.

Also the same change needs to be made to jenkinsci/pom for consistency.

MarkEWaite added a commit to MarkEWaite/pom that referenced this pull request Mar 17, 2023
https://spotbugs.github.io/spotbugs-maven-plugin/spotbugs-mojo.html
says that it is deprecated and gives no reason for the deprecation.
Since the value was false, it seems safe to remove the setting.

Fixes jenkinsci/plugin-pom#716

	jenkinsci/plugin-pom#722 is the matching pull
request in the plugin pom.
@basil basil merged commit 4e29348 into jenkinsci:master Mar 17, 2023
@MarkEWaite MarkEWaite deleted the remove-deprecated-spotbugsXmlOutput-setting branch March 17, 2023 19:36
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.

"Parameter spotbugsXmlOutput is deprecated: No reason given" warning
2 participants