Skip to content
Snippets Groups Projects
Commit f328396c authored by Clayton, Brandon Scott's avatar Clayton, Brandon Scott
Browse files

add comments, add field

parent 9a9ab93b
No related branches found
No related tags found
1 merge request!266Report Version
......@@ -6,8 +6,14 @@ import com.google.common.base.Charsets;
import com.google.common.io.Resources;
import com.google.gson.Gson;
/**
* Interface for reading in version info JSON files.
*/
public interface AppVersion {
/**
* Returns the version info for the repo.
*/
public VersionInfo getVersionInfo();
static VersionInfo versionInfo(URL resource) {
......@@ -20,6 +26,9 @@ public interface AppVersion {
}
}
/**
* The version info of a repository.
*/
public static class VersionInfo {
public String branchName;
public int commitDistance;
......@@ -27,6 +36,7 @@ public interface AppVersion {
public String gitHashFull;
public boolean isCleanTag;
public String lastTag;
public String projectName;
public String url;
public String version;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment