Skip to content

Commit

Permalink
Merge branch 'master' into license-checker-v2
Browse files Browse the repository at this point in the history
  • Loading branch information
imbajin authored Nov 26, 2022
2 parents 03e113f + 3b44568 commit a97fdfa
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,6 @@ public final class ApiVersion {
public static void check() {
// Check version of hugegraph-core. Firstly do check from version 0.3
// TODO: what shall we set for this version? (consider the basic compatibility)
VersionUtil.check(CoreVersion.VERSION, "0.13", "0.14", CoreVersion.NAME);
VersionUtil.check(CoreVersion.VERSION, "1.0", "1.1", CoreVersion.NAME);
}
}
2 changes: 1 addition & 1 deletion hugegraph-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@
</addDefaultSpecificationEntries>
</manifest>
<manifestEntries>
<Implementation-Version>0.13.0.0</Implementation-Version>
<Implementation-Version>${project.version}</Implementation-Version>
</manifestEntries>
</archive>
</configuration>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ public class CoreVersion {
public static void check() {
// Check version of hugegraph-common
// TODO: why shall we check it? Update it if need
VersionUtil.check(CommonVersion.VERSION, "2.1.0", "2.2.0", CommonVersion.NAME);
VersionUtil.check(CommonVersion.VERSION, "1.0", "1.1", CommonVersion.NAME);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

package org.apache.hugegraph.unit.util;

import org.apache.hugegraph.version.ApiVersion;
import org.junit.Test;

import org.apache.hugegraph.testutil.Assert;
Expand All @@ -41,4 +42,10 @@ public void testCoreVersionCheck() {
// Expect not throw exception
CoreVersion.check();
}

@Test
public void testApiVersionCheck() {
// Expect not throw exception
ApiVersion.check();
}
}

0 comments on commit a97fdfa

Please sign in to comment.