Skip to content

Commit 3a0810a

Browse files
meili-bors[bot]brunoocasalialallema
authored
Merge #594
594: Add explicitly requirement of okhttp r=alallema a=brunoocasali Since the reported error is just a misconfiguration, I believe we can fix it by always making the lib required since that's true after the refactor #425. Fix #580 Co-authored-by: Bruno Casali <[email protected]> Co-authored-by: Amélie <[email protected]>
2 parents 712f45a + 016461b commit 3a0810a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ Add the following line to the `dependencies` section of your `build.gradle`:
6969
implementation 'com.meilisearch.sdk:meilisearch-java:0.11.0'
7070
```
7171

72+
:warning: `meilisearch-java` also requires `okhttp` as a peer dependency.
73+
7274
### Run Meilisearch <!-- omit in toc -->
7375

7476
There are many easy ways to [download and run a Meilisearch instance](https://docs.meilisearch.com/reference/features/installation.html#download-and-launch).

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ dependencies {
4444
implementation 'com.google.code.gson:gson:2.10.1'
4545
implementation 'org.json:json:20230227'
4646
// https://mvnrepository.com/artifact/org.apache.httpcomponents.client5/httpclient5
47-
compileOnly 'com.squareup.okhttp3:okhttp:4.11.0'
47+
api 'com.squareup.okhttp3:okhttp:[4.10.0,5.0.0)'
4848

4949
// Use JUnit test framework
5050
testImplementation(platform('org.junit:junit-bom:5.9.3'))

0 commit comments

Comments
 (0)