Skip to content

Update README for Spring Boot dependency collisions#336

Merged
jimmyjames merged 1 commit intomasterfrom
update-readme-for-spring-deps
Mar 8, 2021
Merged

Update README for Spring Boot dependency collisions#336
jimmyjames merged 1 commit intomasterfrom
update-readme-for-spring-deps

Conversation

@jimmyjames
Copy link
Copy Markdown
Contributor

Changes

Spring's dependency management defines okhttp v3 as part of its exported BOM, which collides with okhttp v4 used by this library. This results in java.lang.NoSuchMethodError when making requests, as reported in #324. Unfortunately we cannot control how Spring exports its dependencies, so this PR updates the README to include the workaround of specifying okhttp v4 in the spring dependency management configuration.

References

Testing

Solution tested by creating both a maven and gradle project using the spring boot plugins. Without the bom override, NoSuchMethodError observed when making requests. With the bom override, the error is resolved.

Checklist

@jimmyjames jimmyjames added documentation This adds, fixes or improves documentation review:small Small review labels Mar 4, 2021
@jimmyjames jimmyjames requested a review from a team as a code owner March 4, 2021 14:35
@jimmyjames jimmyjames merged commit 359c2cd into master Mar 8, 2021
@jimmyjames jimmyjames deleted the update-readme-for-spring-deps branch August 10, 2021 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation This adds, fixes or improves documentation review:small Small review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

java.lang.NoSuchMethodError: 'okhttp3.RequestBody okhttp3.RequestBody.create(byte[], okhttp3.MediaType)'

2 participants