Parse contained dependency Timestamp as long instead of int (#4866)

This commit is contained in:
Erlend Åmdal authored and LexManos committed 2018-04-11 16:26:53 -07:00
1 parent 9442a48e93
commit 0fca21fbc5
1 file changed
+1 -1
@@ -320,7 +320,7 @@ public class LibraryManager
{
String timestamp = meta.getValue(TIMESTAMP);
if (timestamp != null)
timestamp = SnapshotJson.TIMESTAMP.format(new Date(Integer.parseInt(timestamp)));
timestamp = SnapshotJson.TIMESTAMP.format(new Date(Long.parseLong(timestamp)));
Artifact artifact = new Artifact(modlist.getRepository(), meta.getValue(MAVEN_ARTIFACT), timestamp);
File target = artifact.getFile();