fix: use shadow jar in app bundle to reduce jars count (#1868)

This commit is contained in:
Skylot
2023-05-18 20:40:39 +01:00
parent ae1b1ce99e
commit ed4c5a3a17
4 changed files with 33 additions and 2 deletions
@@ -74,6 +74,8 @@ public class JCommanderWrapper<T> {
}
public void printUsage() {
LogHelper.setLogLevel(LogHelper.LogLevelEnum.ERROR); // mute logger while printing help
// print usage in not sorted fields order (by default sorted by description)
PrintStream out = System.out;
out.println();
@@ -51,6 +51,11 @@ public class LogHelper {
return args.logLevel;
}
public static void setLogLevel(LogLevelEnum newLogLevel) {
logLevelValue = newLogLevel;
applyLogLevel(logLevelValue);
}
public static void setLogLevelsForLoadingStage() {
if (logLevelValue == null) {
return;