Skip to content

Commit 3b44568

Browse files
z7658329imbajin
andauthored
fix outdated manifest version & use project.version instead (#2033)
Co-authored-by: imbajin <[email protected]>
1 parent 6c9fe3a commit 3b44568

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

hugegraph-api/src/main/java/org/apache/hugegraph/version/ApiVersion.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,6 @@ public final class ApiVersion {
127127
public static void check() {
128128
// Check version of hugegraph-core. Firstly do check from version 0.3
129129
// TODO: what shall we set for this version? (consider the basic compatibility)
130-
VersionUtil.check(CoreVersion.VERSION, "0.13", "0.14", CoreVersion.NAME);
130+
VersionUtil.check(CoreVersion.VERSION, "1.0", "1.1", CoreVersion.NAME);
131131
}
132132
}

hugegraph-core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@
325325
</addDefaultSpecificationEntries>
326326
</manifest>
327327
<manifestEntries>
328-
<Implementation-Version>0.13.0.0</Implementation-Version>
328+
<Implementation-Version>${project.version}</Implementation-Version>
329329
</manifestEntries>
330330
</archive>
331331
</configuration>

hugegraph-core/src/main/java/org/apache/hugegraph/version/CoreVersion.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ public class CoreVersion {
4141
public static void check() {
4242
// Check version of hugegraph-common
4343
// TODO: why shall we check it? Update it if need
44-
VersionUtil.check(CommonVersion.VERSION, "2.1.0", "2.2.0", CommonVersion.NAME);
44+
VersionUtil.check(CommonVersion.VERSION, "1.0", "1.1", CommonVersion.NAME);
4545
}
4646
}

hugegraph-test/src/main/java/org/apache/hugegraph/unit/util/VersionTest.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
package org.apache.hugegraph.unit.util;
2121

22+
import org.apache.hugegraph.version.ApiVersion;
2223
import org.junit.Test;
2324

2425
import org.apache.hugegraph.testutil.Assert;
@@ -41,4 +42,10 @@ public void testCoreVersionCheck() {
4142
// Expect not throw exception
4243
CoreVersion.check();
4344
}
45+
46+
@Test
47+
public void testApiVersionCheck() {
48+
// Expect not throw exception
49+
ApiVersion.check();
50+
}
4451
}

0 commit comments

Comments
 (0)