Skip to content

chore: Support spotbugs running anywhere #1537

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

Merged
merged 3 commits into from
Dec 14, 2023
Merged

Conversation

scottgerring
Copy link
Contributor

Issue #, if available: n/a

Because spotbugs relies on a relative path to find its configuration and license-header, you can't run mvn install from arbitrary subdirectories in the project successfully. For instance - powertools-parameters - mvn install will fail here with an inability to find the license-header file. This maven.multiModuleProjectDirectory variable only gets set to the actual project root if a .mvn directory exists.

By doing this we can easily use it to find files relative to the root without having to specify some relative path property in every single POM.

Checklist

Breaking change checklist

RFC issue #:

  • Migration process documented
  • Implement warnings (if it can live side by side)

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Copy link
Contributor

github-actions bot commented Dec 12, 2023

💾 Artifacts Size Report

Module Version Size (KB)
powertools-common 2.0.0-SNAPSHOT 9.81
powertools-serialization 2.0.0-SNAPSHOT 17.91
powertools-logging 2.0.0-SNAPSHOT 20.73
powertools-logging-log4j 2.0.0-SNAPSHOT 21.78
powertools-logging-logback 2.0.0-SNAPSHOT 20.19
powertools-tracing 2.0.0-SNAPSHOT 13.43
powertools-metrics 2.0.0-SNAPSHOT 14.28
powertools-parameters 2.0.0-SNAPSHOT 17.46
powertools-validation 2.0.0-SNAPSHOT 20.20
powertools-cloudformation 2.0.0-SNAPSHOT 16.82
powertools-idempotency 2.0.0-SNAPSHOT 43.44
powertools-large-messages 2.0.0-SNAPSHOT 17.66
powertools-batch 2.0.0-SNAPSHOT 16.89
powertools-parameters-ssm 2.0.0-SNAPSHOT 10.63
powertools-parameters-secrets 2.0.0-SNAPSHOT 9.85
powertools-parameters-dynamodb 2.0.0-SNAPSHOT 11.89
powertools-parameters-appconfig 2.0.0-SNAPSHOT 11.48

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

❗ No coverage uploaded for pull request base (v2@b139a96). Click here to learn what that means.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@          Coverage Diff          @@
##             v2    #1537   +/-   ##
=====================================
  Coverage      ?   87.21%           
  Complexity    ?      530           
=====================================
  Files         ?       61           
  Lines         ?     1854           
  Branches      ?      230           
=====================================
  Hits          ?     1617           
  Misses        ?      163           
  Partials      ?       74           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pull-request-size pull-request-size bot added size/L and removed size/S labels Dec 12, 2023
Copy link

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@scottgerring scottgerring marked this pull request as ready for review December 12, 2023 15:42
@scottgerring scottgerring added the v2 Version 2 label Dec 13, 2023
@jeromevdl
Copy link
Contributor

jeromevdl commented Dec 14, 2023

If I understand correctly, it's not only spotbugs but also checkstyle, licence-header is for checkstyle, spotbugs-exclude for spotbugs

@jeromevdl jeromevdl merged commit fb14bcf into v2 Dec 14, 2023
@jeromevdl jeromevdl deleted the chore-spotbugs-everywhere branch December 14, 2023 09:46
@scottgerring
Copy link
Contributor Author

scottgerring commented Dec 14, 2023

@jeromevdl exactly, it covers all of this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/L v2 Version 2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants