}
JsonObject version = new JsonObject();
version.add("name", versionName);
version.add("timestamp", Util.ISO8601FromDate(new Date()));
version.add("notes", notes);
JsonArray libraries = new JsonArray();
{
libraries.add(libraryJson(chunkyCore));
}
for (File lib: libDir.listFiles()) {
if (lib.getName().endsWith(".jar")) {
libraries.add(libraryJson(lib));
}
}
version.add("libraries", libraries);
JarEntry entry = new JarEntry("version.json");
entry.setTime(System.currentTimeMillis());