VGalaxies opened a new issue, #2714:
URL: https://github.com/apache/incubator-hugegraph/issues/2714

   ### Feature Description (功能描述)
   
   Currently, if you want to upgrade the hugegraph version number, for example, 
from 1.5.0 to 1.6.0, you need to modify at least the following files:
   
   ```diff
   diff --git 
a/hugegraph-commons/hugegraph-common/src/main/java/org/apache/hugegraph/version/CommonVersion.java
 
b/hugegraph-commons/hugegraph-common/src/main/java/org/apache/hugegraph/version/CommonVersion.java
   index 73342fdaa..3cb4029fa 100644
   --- 
a/hugegraph-commons/hugegraph-common/src/main/java/org/apache/hugegraph/version/CommonVersion.java
   +++ 
b/hugegraph-commons/hugegraph-common/src/main/java/org/apache/hugegraph/version/CommonVersion.java
   @@ -24,5 +24,5 @@ public class CommonVersion {
        public static final String NAME = "hugegraph-common";
    
        // The second parameter of Version.of() is for all-in-one JAR
   -    public static final Version VERSION = Version.of(CommonVersion.class, 
"1.5.0");
   +    public static final Version VERSION = Version.of(CommonVersion.class, 
"1.6.0");
    }
   diff --git 
a/hugegraph-commons/hugegraph-rpc/src/main/java/org/apache/hugegraph/version/RpcVersion.java
 
b/hugegraph-commons/hugegraph-rpc/src/main/java/org/apache/hugegraph/version/RpcVersion.java
   index a2dd3d72c..7f5e0a79d 100644
   --- 
a/hugegraph-commons/hugegraph-rpc/src/main/java/org/apache/hugegraph/version/RpcVersion.java
   +++ 
b/hugegraph-commons/hugegraph-rpc/src/main/java/org/apache/hugegraph/version/RpcVersion.java
   @@ -24,5 +24,5 @@ public class RpcVersion {
        public static final String NAME = "hugegraph-rpc";
    
        // The second parameter of Version.of() is for all-in-one JAR
   -    public static final Version VERSION = Version.of(RpcVersion.class, 
"1.5.0");
   +    public static final Version VERSION = Version.of(RpcVersion.class, 
"1.6.0");
    }
   diff --git a/hugegraph-commons/pom.xml b/hugegraph-commons/pom.xml
   index 09cd71e5a..04abfe47a 100644
   --- a/hugegraph-commons/pom.xml
   +++ b/hugegraph-commons/pom.xml
   @@ -90,7 +90,7 @@
    
        <properties>
            <!-- Note: We need also update the version in CommonVersion.java & 
RpcVersion.java now -->
   -        <revision>1.5.0</revision>
   +        <revision>1.6.0</revision>
            <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
            <top.level.dir>${project.basedir}/..</top.level.dir>
            <compiler.source>1.8</compiler.source>
   diff --git 
a/hugegraph-pd/hg-pd-service/src/main/java/org/apache/hugegraph/pd/rest/API.java
 
b/hugegraph-pd/hg-pd-service/src/main/java/org/apache/hugegraph/pd/rest/API.java
   index a2287cb83..f5a8b4dcc 100644
   --- 
a/hugegraph-pd/hg-pd-service/src/main/java/org/apache/hugegraph/pd/rest/API.java
   +++ 
b/hugegraph-pd/hg-pd-service/src/main/java/org/apache/hugegraph/pd/rest/API.java
   @@ -33,7 +33,7 @@ public class API {
    
        // TODO: use a flexible way to define the version
        // refer: 
https://github.com/apache/hugegraph/pull/2528#discussion_r1573823996
   -    public static final String VERSION = "1.5.0";
   +    public static final String VERSION = "1.6.0";
        public static final String PD = "PD";
        public static final String STORE = "STORE";
        public static String STATUS_KEY = "status";
   diff --git 
a/hugegraph-server/hugegraph-api/src/main/java/org/apache/hugegraph/version/ApiVersion.java
 
b/hugegraph-server/hugegraph-api/src/main/java/org/apache/hugegraph/version/ApiVersion.java
   index bbc06ad30..373991936 100644
   --- 
a/hugegraph-server/hugegraph-api/src/main/java/org/apache/hugegraph/version/ApiVersion.java
   +++ 
b/hugegraph-server/hugegraph-api/src/main/java/org/apache/hugegraph/version/ApiVersion.java
   @@ -131,6 +131,6 @@ public final class ApiVersion {
    
        public static void check() {
            // Check the version of hugegraph-core. Do first check from version 
0.3
   -        VersionUtil.check(CoreVersion.VERSION, "1.0", "1.6", 
CoreVersion.NAME);
   +        VersionUtil.check(CoreVersion.VERSION, "1.0", "1.7", 
CoreVersion.NAME);
        }
    }
   diff --git 
a/hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/version/CoreVersion.java
 
b/hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/version/CoreVersion.java
   index 468663c92..f40845385 100644
   --- 
a/hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/version/CoreVersion.java
   +++ 
b/hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/version/CoreVersion.java
   @@ -23,7 +23,7 @@ import org.apache.hugegraph.util.VersionUtil.Version;
    public class CoreVersion {
    
        public static final String NAME = "hugegraph-core";
   -    public static final String DEFAULT_VERSION = "1.5.0";
   +    public static final String DEFAULT_VERSION = "1.6.0";
        /**
         * The second parameter of Version.of() is for IDE running without JAR
         */
   diff --git a/hugegraph-server/hugegraph-dist/src/assembly/travis/start-pd.sh 
b/hugegraph-server/hugegraph-dist/src/assembly/travis/start-pd.sh
   index 9f694d5c3..a21d9cd70 100755
   --- a/hugegraph-server/hugegraph-dist/src/assembly/travis/start-pd.sh
   +++ b/hugegraph-server/hugegraph-dist/src/assembly/travis/start-pd.sh
   @@ -18,7 +18,7 @@
    set -ev
    
    HOME_DIR=$(pwd)
   -PD_DIR=$HOME_DIR/hugegraph-pd/apache-hugegraph-pd-incubating-1.5.0
   +PD_DIR=$HOME_DIR/hugegraph-pd/apache-hugegraph-pd-incubating-1.6.0
    
    pushd $PD_DIR
    . bin/start-hugegraph-pd.sh
   diff --git 
a/hugegraph-server/hugegraph-dist/src/assembly/travis/start-store.sh 
b/hugegraph-server/hugegraph-dist/src/assembly/travis/start-store.sh
   index 23e8f2297..74be00bc7 100755
   --- a/hugegraph-server/hugegraph-dist/src/assembly/travis/start-store.sh
   +++ b/hugegraph-server/hugegraph-dist/src/assembly/travis/start-store.sh
   @@ -18,7 +18,7 @@
    set -ev
    
    HOME_DIR=$(pwd)
   -STORE_DIR=$HOME_DIR/hugegraph-store/apache-hugegraph-store-incubating-1.5.0
   +STORE_DIR=$HOME_DIR/hugegraph-store/apache-hugegraph-store-incubating-1.6.0
    
    pushd $STORE_DIR
    . bin/start-hugegraph-store.sh
   diff --git a/pom.xml b/pom.xml
   index 1fa07660e..9cd165296 100644
   --- a/pom.xml
   +++ b/pom.xml
   @@ -86,8 +86,8 @@
        </scm>
    
        <properties>
   -        <revision>1.5.0</revision>
   -        <hugegraph-commons.version>1.5.0</hugegraph-commons.version>
   +        <revision>1.6.0</revision>
   +        <hugegraph-commons.version>1.6.0</hugegraph-commons.version>
            <lombok.version>1.18.30</lombok.version>
            <release.name>hugegraph</release.name>
            <maven.compiler.source>11</maven.compiler.source>
   ```
   
   Consider simplifying this process...


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@hugegraph.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to