public final class Version extends Object
This class retrieves the version information from
META-INF/com.linecorp.armeria.versions.properties, which is generated in build time. Note that
it may not be possible to retrieve the information completely, depending on your environment, such as
the specified ClassLoader, the current SecurityManager.
| Modifier and Type | Method and Description |
|---|---|
String |
artifactId() |
String |
artifactVersion() |
long |
commitTimeMillis() |
static Map<String,Version> |
identify()
Retrieves the version information of Armeria artifacts using the current
context class loader.
|
static Map<String,Version> |
identify(ClassLoader classLoader)
Retrieves the version information of Armeria artifacts using the specified
ClassLoader. |
boolean |
isClean()
Returns true if repository status is not dirty.
|
String |
longCommitHash() |
String |
repositoryStatus() |
String |
shortCommitHash() |
String |
toString() |
public static Map<String,Version> identify()
public static Map<String,Version> identify(@Nullable ClassLoader classLoader)
ClassLoader.public String artifactId()
public String artifactVersion()
public long commitTimeMillis()
public String shortCommitHash()
public String longCommitHash()
public String repositoryStatus()
public boolean isClean()
Copyright © 2020 LeanCloud. All rights reserved.