Prechádzať zdrojové kódy

Merge pull request #109 from sahuang/master

Update to SDK 0.8.2
Xiaohai Xu 4 rokov pred
rodič
commit
83b2dc6f6f

+ 3 - 2
README.md

@@ -15,6 +15,7 @@ The following table shows compatibilities between Milvus and Java SDK.
 
 | Milvus version | Java SDK version |
 | :------------: | :--------------: |
+|     0.10.0     |    0.8.2         |
 |     0.9.1      |    0.8.1         |
 |     0.9.0      |    0.8.0         |
 |     0.8.0      |    0.7.0         |
@@ -36,14 +37,14 @@ You can use **Apache Maven** or **Gradle**/**Grails** to download the SDK.
         <dependency>
             <groupId>io.milvus</groupId>
             <artifactId>milvus-sdk-java</artifactId>
-            <version>0.8.1</version>
+            <version>0.8.2</version>
         </dependency>
        ```
 
    - Gradle/Grails
 
         ```gradle
-        compile 'io.milvus:milvus-sdk-java:0.8.1'
+        compile 'io.milvus:milvus-sdk-java:0.8.2'
         ```
 
 ### Examples

+ 2 - 2
examples/pom.xml

@@ -25,7 +25,7 @@
 
     <groupId>io.milvus</groupId>
     <artifactId>milvus-sdk-java-examples</artifactId>
-    <version>0.8.1</version>
+    <version>0.8.2</version>
     <build>
         <plugins>
             <plugin>
@@ -63,7 +63,7 @@
         <dependency>
             <groupId>io.milvus</groupId>
             <artifactId>milvus-sdk-java</artifactId>
-            <version>0.8.1</version>
+            <version>0.8.2</version>
         </dependency>
         <dependency>
             <groupId>com.google.code.gson</groupId>

+ 1 - 1
pom.xml

@@ -25,7 +25,7 @@
 
     <groupId>io.milvus</groupId>
     <artifactId>milvus-sdk-java</artifactId>
-    <version>0.8.1</version>
+    <version>0.8.2</version>
     <packaging>jar</packaging>
 
     <name>io.milvus:milvus-sdk-java</name>

+ 2 - 2
src/main/java/io/milvus/client/MilvusClient.java

@@ -26,9 +26,9 @@ import java.util.List;
 /** The Milvus Client Interface */
 public interface MilvusClient {
 
-  String clientVersion = "0.8.1";
+  String clientVersion = "0.8.2";
 
-  /** @return current Milvus client version: 0.8.1 */
+  /** @return current Milvus client version: 0.8.2 */
   default String getClientVersion() {
     return clientVersion;
   }

+ 2 - 2
src/main/java/io/milvus/client/MilvusGrpcClient.java

@@ -95,8 +95,8 @@ public class MilvusGrpcClient implements MilvusClient {
 
       // check server version
       String serverVersion = getServerVersion().getMessage();
-      if (!serverVersion.contains("0.9.")) {
-        logError("Connect failed! Server version {} does not match SDK version 0.8.1", serverVersion);
+      if (!serverVersion.contains("0.10.")) {
+        logError("Connect failed! Server version {} does not match SDK version 0.8.2", serverVersion);
         throw new ConnectFailedException("Failed to connect to Milvus server.");
       }