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

This commit is contained in:
Erlend Åmdal 2018-04-12 01:26:53 +02:00 committed by LexManos
parent 9442a48e93
commit 0fca21fbc5
1 changed files with 1 additions and 1 deletions

View File

@ -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();