Skip to content

chore(dependencies) fix issues raised by dependency:analyze - #2034

Merged
jeandersonbc merged 1 commit into
mainfrom
dependency-cleanup
Aug 11, 2026
Merged

chore(dependencies) fix issues raised by dependency:analyze#2034
jeandersonbc merged 1 commit into
mainfrom
dependency-cleanup

Conversation

@jeandersonbc

Copy link
Copy Markdown
Contributor

This PR runs cleans up used (but not declared, i.e., transitive) dependencies by explicitly declaring it and removes declared (but not used, i.e., stale) dependencies by removing them. In addition, adds mvn dependency:analyze -DfailOnWarnings=true to ensure dependencies are always correct.

@jeandersonbc jeandersonbc self-assigned this Aug 11, 2026
@jeandersonbc
jeandersonbc requested a review from a team as a code owner August 11, 2026 12:22

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request updates several dependencies in pom.xml, including Jackson, Apache HttpComponents, Okio, and JUnit. The review feedback points out that replacing the junit-jupiter aggregator with individual modules requires adding junit-jupiter-engine to prevent tests from being silently skipped. Additionally, it recommends aligning the Jackson dependency versions by reusing the existing ${com.fasterxml.jackson-version} property and removing the redundant com.fasterxml.jackson-annotations-version property.

Comment thread pom.xml
Comment thread pom.xml
Comment thread pom.xml
@jeandersonbc
jeandersonbc force-pushed the dependency-cleanup branch 3 times, most recently from d2547a4 to 708f0b1 Compare August 11, 2026 12:57
@jeandersonbc
jeandersonbc enabled auto-merge August 11, 2026 14:37
Comment thread pom.xml Outdated
This PR runs cleans up used (but not declared, i.e., transitive) dependencies by explicitly
declaring it and removes declared (but not used, i.e., stale) dependencies by removing them.
In addition, adds `mvn dependency:analyze -DfailOnWarnings=true` to ensure dependencies are
always correct.

Junit Platform is a false-negative because it is handled via ServiceLoader. Our surefire
version makes it redundant (that's why tests remain running without it) but for safety, we
explicitly add it and use the dependency plugin to ignore it from analysis.
@jeandersonbc
jeandersonbc added this pull request to the merge queue Aug 11, 2026
@sonarqubecloud

Copy link
Copy Markdown

Merged via the queue into main with commit c73b6bd Aug 11, 2026
8 checks passed
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