-
Notifications
You must be signed in to change notification settings - Fork 12
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
Backward Compatibility With okhttp3 3.14.x #104
Comments
Changing/Fixing Voucherify's SDK by changing VoucherifyClient.java:245
makes the PoC running with okhttp 3.14.9 (test with fetching a voucher). |
i @tpindel, thx for your quick reply! I agree totaly to your concerns regarding backwards compatibility that other components does not keep their dependencies up to date! It's more a nightmare for us not to be able to use current (stable and safe) versions of our components. Anyhow, at least incompatibilities should fail at compile- not at runtime (what's also a nightmare). If instead backwards compatibility will be provided - it would be the fastest and most easiest solution. And I agree, not the best one. |
In case of the Voucherify SDK should be used in a Spring Boot application you should consider https://docs.spring.io/spring-boot/docs/2.5.6/gradle-plugin/reference/htmlsingle/#managing-dependencies.dependency-management-plugin.customizing - Spring Boot dependency management defines okhttp3 version 3.4.19 as a default and does not recommend to change that version -> anyhow, there is no hard dependency from any Spring Boot component to that okhttp3 version. In a pure Spring Boot project you might also use okhttp3 4.9.0. |
@ausykaso Please leave your comments in Pull Request if you have any suggestions on that topic: https://github.com/voucherifyio/voucherify-java-sdk/pull/105/files |
@lkulig Did we release the new version with enhancements covering issues reported in that ticket? |
Problem:
voucherify-java-sdk
is used together with the current Contentful Java SDK there's a version clash regardingokhttp3
:voucherify
depends on version 4.2.0 andcontentful
on 3.12.12.okhttp3
version 3.14.9 as the most suitable version to be used for both.voucherify
andcontentful
builds without errors or warnings but then fails at runtime in VoucherifyClient.java:245 with an invalid method call exception (access to a private member).voucherify
8.1.0 (latest version before switching to okhttp3 4.2.0) works but fails reading vouchers from the predefined voucherify 30 day trial environment -> versions after 8.1.0 seems to introduce breaking changes, error message:Expected behaviour:
The text was updated successfully, but these errors were encountered: