From a965d17584f1de9362fb53be9e5bf018761bc1d5 Mon Sep 17 00:00:00 2001 From: Linary Date: Tue, 19 Jan 2021 19:42:43 +0800 Subject: [PATCH] Upgrade version to 0.11.0 (#51) --- pom.xml | 4 ++-- studio-api/pom.xml | 2 +- .../baidu/hugegraph/studio/board/HugeClientWrapper.java | 8 ++++++-- .../baidu/hugegraph/studio/config/StudioApiOptions.java | 1 - studio-dist/pom.xml | 2 +- 5 files changed, 10 insertions(+), 7 deletions(-) diff --git a/pom.xml b/pom.xml index bd3866d1..4c097627 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ com.baidu.hugegraph hugegraph-studio pom - 0.10.0 + 0.11.0 studio-api studio-dist @@ -25,7 +25,7 @@ 1.8 2.8.2 4.12 - 1.8.0 + 1.9.1 21.0 3.6 8.5.40 diff --git a/studio-api/pom.xml b/studio-api/pom.xml index 971ba0b1..9f0faa0a 100644 --- a/studio-api/pom.xml +++ b/studio-api/pom.xml @@ -5,7 +5,7 @@ hugegraph-studio com.baidu.hugegraph - 0.10.0 + 0.11.0 4.0.0 studio-api diff --git a/studio-api/src/main/java/com/baidu/hugegraph/studio/board/HugeClientWrapper.java b/studio-api/src/main/java/com/baidu/hugegraph/studio/board/HugeClientWrapper.java index 484d0c4c..2bad521a 100644 --- a/studio-api/src/main/java/com/baidu/hugegraph/studio/board/HugeClientWrapper.java +++ b/studio-api/src/main/java/com/baidu/hugegraph/studio/board/HugeClientWrapper.java @@ -20,6 +20,7 @@ package com.baidu.hugegraph.studio.board; import com.baidu.hugegraph.driver.HugeClient; +import com.baidu.hugegraph.driver.HugeClientBuilder; import com.baidu.hugegraph.studio.config.StudioApiConfig; public final class HugeClientWrapper { @@ -40,7 +41,10 @@ public static HugeClient get(StudioApiConfig config) { private HugeClientWrapper() {} private static HugeClient newHugeClient(StudioApiConfig config) { - return new HugeClient(config.getGraphServerUrl(), config.getGraphName(), - config.getClientTimeout()); + HugeClientBuilder builder; + builder = new HugeClientBuilder(config.getGraphServerUrl(), + config.getGraphName()); + builder.configTimeout(config.getClientTimeout()); + return builder.build(); } } diff --git a/studio-api/src/main/java/com/baidu/hugegraph/studio/config/StudioApiOptions.java b/studio-api/src/main/java/com/baidu/hugegraph/studio/config/StudioApiOptions.java index ab20ecba..78c61811 100644 --- a/studio-api/src/main/java/com/baidu/hugegraph/studio/config/StudioApiOptions.java +++ b/studio-api/src/main/java/com/baidu/hugegraph/studio/config/StudioApiOptions.java @@ -140,7 +140,6 @@ public static StudioApiOptions instance() { "The suffixes of gremlin statement which should be " + "appended limit()", disallowEmpty(), - String.class, ".V()", ".E()" ); diff --git a/studio-dist/pom.xml b/studio-dist/pom.xml index 54fd3a7f..ccabb222 100644 --- a/studio-dist/pom.xml +++ b/studio-dist/pom.xml @@ -5,7 +5,7 @@ hugegraph-studio com.baidu.hugegraph - 0.10.0 + 0.11.0 4.0.0