自动获取jar的版本号进行banner的打印

This commit is contained in:
everywhere.z
2022-09-27 18:18:19 +08:00
parent 1555cd9441
commit 25bd006d4e

View File

@@ -32,7 +32,7 @@ public class LOGOPrinter {
private static String getVersion(){
Package pkg = LOGOPrinter.class.getPackage();
return (pkg != null) ? pkg.getImplementationVersion() : null;
return (pkg != null) ? pkg.getImplementationVersion() : "DEV";
}
public static void main(String[] args) {