Skip to content

Align retrofit2 versions to ensure dependency convergence #513

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mnk
Copy link

@mnk mnk commented Jul 13, 2025

When depending on com.segment.analytics.java:analytics and using Maven DependencyConvergence enforcer,
build will fail with:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:3.5.0:enforce (dependencies) on project commons-segment:
[ERROR] Rule 16: org.apache.maven.enforcer.rules.dependency.DependencyConvergence failed with message:
[ERROR] Failed while enforcing releasability.
[ERROR]
[ERROR] Dependency convergence error for com.squareup.retrofit2:retrofit:jar:2.11.0 paths to dependency are:
[ERROR]   +-com.segment.analytics.java:analytics:jar:3.5.2:compile
[ERROR]     +-com.segment.analytics.java:analytics-core:jar:3.5.2:compile
[ERROR]       +-com.squareup.retrofit2:retrofit:jar:2.11.0:compile
[ERROR] and
[ERROR]   +-com.segment.analytics.java:analytics:jar:3.5.2:compile
[ERROR]     +-com.squareup.retrofit2:converter-gson:jar:2.9.0:compile
[ERROR]       +-com.squareup.retrofit2:retrofit:jar:2.9.0:compile
[ERROR] and
[ERROR]   +-com.segment.analytics.java:analytics:jar:3.5.2:compile
[ERROR]     +-com.squareup.retrofit2:retrofit-mock:jar:2.11.0:compile
[ERROR]       +-com.squareup.retrofit2:retrofit:jar:2.11.0:compile

When depending on com.segment.analytics.java:analytics and using Maven DependencyConvergence enforcer,
build will fail with:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:3.5.0:enforce (dependencies) on project commons-segment:
[ERROR] Rule 16: org.apache.maven.enforcer.rules.dependency.DependencyConvergence failed with message:
[ERROR] Failed while enforcing releasability.
[ERROR]
[ERROR] Dependency convergence error for com.squareup.retrofit2:retrofit:jar:2.11.0 paths to dependency are:
[ERROR]   +-com.segment.analytics.java:analytics:jar:3.5.2:compile
[ERROR]     +-com.segment.analytics.java:analytics-core:jar:3.5.2:compile
[ERROR]       +-com.squareup.retrofit2:retrofit:jar:2.11.0:compile
[ERROR] and
[ERROR]   +-com.segment.analytics.java:analytics:jar:3.5.2:compile
[ERROR]     +-com.squareup.retrofit2:converter-gson:jar:2.9.0:compile
[ERROR]       +-com.squareup.retrofit2:retrofit:jar:2.9.0:compile
[ERROR] and
[ERROR]   +-com.segment.analytics.java:analytics:jar:3.5.2:compile
[ERROR]     +-com.squareup.retrofit2:retrofit-mock:jar:2.11.0:compile
[ERROR]       +-com.squareup.retrofit2:retrofit:jar:2.11.0:compile
@mnk mnk marked this pull request as ready for review July 13, 2025 15:33
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.

1 participant