
com.freya02.botcommands.api.BCInfo Maven / Gradle / Ivy
package com.freya02.botcommands.api;
import java.time.Instant;
public class BCInfo {
public static final Instant BUILD_TIME;
public static final String VERSION_MAJOR = "3";
public static final String VERSION_MINOR = "0";
public static final String VERSION_REVISION = "0";
public static final String VERSION_CLASSIFIER = "alpha.1";
public static final String GITHUB = "https://github.com/freya022/BotCommands";
/** May be "null", may also be a full commit hash in Jitpack builds */
public static final String BRANCH_NAME = "HEAD";
/** May be "null" */
public static final String COMMIT_HASH = "dba89132f1";
public static final String BUILD_JDA_VERSION = "5.0.0-beta.11";
@SuppressWarnings("ConstantConditions")
public static final String VERSION = "%s.%s.%s%s%s".formatted(VERSION_MAJOR, VERSION_MINOR, VERSION_REVISION,
VERSION_CLASSIFIER == null ? "" : "-" + VERSION_CLASSIFIER,
COMMIT_HASH.equals("null") ? "" : "_" + COMMIT_HASH);
static {
Instant tmpBuildTime;
try {
tmpBuildTime = Instant.ofEpochMilli(Long.parseLong("1687898148204"));
} catch (NumberFormatException e) { //Can happen on IJ builds, ig
tmpBuildTime = Instant.now();
}
BUILD_TIME = tmpBuildTime;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy