From a293b128f82b0a09983c419928f2d6dc507b39e7 Mon Sep 17 00:00:00 2001 From: Maarten Mulders Date: Wed, 28 Jul 2021 21:57:10 +0200 Subject: [PATCH] Advise how to resolve OkHttp version conflict with Spring Boot --- daprdocs/content/en/java-sdk-docs/_index.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/daprdocs/content/en/java-sdk-docs/_index.md b/daprdocs/content/en/java-sdk-docs/_index.md index 6f49445af3..503dd70c78 100644 --- a/daprdocs/content/en/java-sdk-docs/_index.md +++ b/daprdocs/content/en/java-sdk-docs/_index.md @@ -65,6 +65,17 @@ dependencies { } ``` +If you are also using Spring Boot, you may run into a common issue where the OkHttp version that the Dapr SDK uses conflicts with the one specified in the Spring Boot _Bill of Materials_. +You can fix this by specifying a compatible OkHttp version in your project to match the version that the Dapr SDK uses: + +```xml + + com.squareup.okhttp3 + okhttp + 4.9.0 + +``` + ## Building blocks The Java SDK allows you to interface with all of the [Dapr building blocks]({{< ref building-blocks >}}).