diff --git a/README.md b/README.md index 45d2a263b..5c02eda19 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Java SDK for [Milvus](https://github.com/milvus-io/milvus). To contribute to thi ### Prerequisites - Java 8 or higher - - Apache Maven or Gradle/Grails + - Apache Maven or Gradle The following table shows compatibilities between Milvus and Java SDK. @@ -22,7 +22,7 @@ The following table shows compatibilities between Milvus and Java SDK. ### Install Java SDK -You can use **Apache Maven** or **Gradle**/**Grails** to download the SDK. +You can use **Apache Maven** or **Gradle** add Milvus SDK to your project. - Apache Maven @@ -34,12 +34,18 @@ You can use **Apache Maven** or **Gradle**/**Grails** to download the SDK. ``` - - Gradle/Grails + - Gradle/Groovy - ```gradle + ```groovy implementation 'io.milvus:milvus-sdk-java:2.2.14' ``` + - Gradle/Kotlin + + ```kotlin + implementation("io.milvus:milvus-sdk-java:2.3.0") + ``` + ### Examples Please refer to [examples](https://github.com/milvus-io/milvus-sdk-java/tree/master/examples) folder for Java SDK examples. @@ -56,7 +62,7 @@ Please refer to [examples](https://github.com/milvus-io/milvus-sdk-java/tree/mas ``` This is because SLF4J jar files need to be added into your application's classpath. SLF4J is required by Java SDK for logging purpose. - To fix this issue, you can use **Apache Maven** or **Gradle**/**Grails** to download the required jar files. + To fix this issue, you can use **Apache Maven** or **Gradle** to download the required jar files. - Apache Maven @@ -68,8 +74,14 @@ Please refer to [examples](https://github.com/milvus-io/milvus-sdk-java/tree/mas ``` - - Gradle/Grails + - Gradle/Groovy - ```gradle + ```groovy compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.30' ``` + - Gradle/Kotlin + + ```kotlin + implementation("org.slf4j:slf4j-api:1.7.30") + ``` +