Class SnapshotJson
java.lang.Object
net.minecraftforge.fml.relauncher.libraries.SnapshotJson
- All Implemented Interfaces:
Comparable<SnapshotJson>
This is different from the standard maven snapshot metadata.
Because none of that data is exposed to us as a user of gradle/maven/whatever.
So we JUST use the timestamp.
{
"latest": "yyyyMMdd.hhmmss",
"versions": [
{
"md5": "md5 in hex lowercase",
"timestamp": "yyyyMMdd.hhmmss"
]
}
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final com.google.gson.Gson
private String
private static final org.apache.logging.log4j.Logger
static final String
private static final Comparator<SnapshotJson.Entry>
static final DateFormat
private List<SnapshotJson.Entry>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(SnapshotJson.Entry data) int
static SnapshotJson
void
boolean
void
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
TIMESTAMP
-
META_JSON_FILE
- See Also:
-
GSON
private static final com.google.gson.Gson GSON -
SORTER
-
latest
-
versions
-
-
Constructor Details
-
SnapshotJson
public SnapshotJson()
-
-
Method Details
-
create
-
getLatest
-
add
-
merge
-
remove
-
updateLatest
-
write
- Throws:
IOException
-
compareTo
- Specified by:
compareTo
in interfaceComparable<SnapshotJson>
-