Index: /applications/editors/josm/plugins/pbf/build.xml
===================================================================
--- /applications/editors/josm/plugins/pbf/build.xml	(revision 35824)
+++ /applications/editors/josm/plugins/pbf/build.xml	(revision 35825)
@@ -3,5 +3,5 @@
 
     <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-    <property name="plugin.main.version" value="17334"/>
+    <property name="plugin.main.version" value="17749"/>
 
     <property name="plugin.author" value="Don-vip"/>
Index: /applications/editors/josm/plugins/pbf/ivy.xml
===================================================================
--- /applications/editors/josm/plugins/pbf/ivy.xml	(revision 35824)
+++ /applications/editors/josm/plugins/pbf/ivy.xml	(revision 35825)
@@ -2,6 +2,6 @@
   <info organisation="org.openstreetmap.josm.plugins" module="pbf"/>
   <dependencies>
-    <dependency conf="default->default" org="com.google.protobuf" name="protobuf-java" rev="2.5.0"/>
-    <dependency conf="default->default" org="crosby" name="osmpbf" rev="1.3.3"/>
+    <dependency conf="default->default" org="com.google.protobuf" name="protobuf-java" rev="3.13.0"/>
+    <dependency conf="default->default" org="org.openstreetmap.pbf" name="osmpbf" rev="1.5.0"/>
   </dependencies>
 </ivy-module>
Index: /applications/editors/josm/plugins/pbf/ivy_settings.xml
===================================================================
--- /applications/editors/josm/plugins/pbf/ivy_settings.xml	(revision 35824)
+++ /applications/editors/josm/plugins/pbf/ivy_settings.xml	(revision 35825)
@@ -4,11 +4,6 @@
   <resolvers>
     <ibiblio name="josm-nexus" m2compatible="true" root="https://josm.openstreetmap.de/nexus/content/repositories/public/" />
-    <url name="mkgmap">
-      <ivy pattern="http://ivy.mkgmap.org.uk/repo/[organisation]/[module]/[revision]/ivys/ivy.xml"/>
-      <artifact pattern="http://ivy.mkgmap.org.uk/repo/[organisation]/[module]/[revision]/[type]s/[artifact].[ext]"/>
-    </url>
   </resolvers>
   <modules>
-    <module organisation="crosby" name="osmpbf" resolver="mkgmap"/>
   </modules>
 </ivysettings>
Index: /applications/editors/josm/plugins/pbf/src/org/openstreetmap/josm/plugins/pbf/io/PbfReader.java
===================================================================
--- /applications/editors/josm/plugins/pbf/src/org/openstreetmap/josm/plugins/pbf/io/PbfReader.java	(revision 35824)
+++ /applications/editors/josm/plugins/pbf/src/org/openstreetmap/josm/plugins/pbf/io/PbfReader.java	(revision 35825)
@@ -103,5 +103,5 @@
             if (info.hasTimestamp()) {
                 checkTimestamp(info.getTimestamp());
-                osm.setTimestamp(getDate(info));
+                osm.setInstant(getDate(info).toInstant());
             }
         }
@@ -173,5 +173,5 @@
                                 timestamp += info.getTimestamp(i);
                                 checkTimestamp(timestamp);
-                                nd.setTimestamp(new Date(date_granularity * timestamp));
+                                nd.setInstant(new Date(date_granularity * timestamp).toInstant());
                             }
                         }
@@ -365,4 +365,5 @@
     }
 
+    @SuppressWarnings("resource")
     public void parse(InputStream source) throws IOException, IllegalDataException {
         new BlockInputStream(source, parser).process();
Index: /applications/editors/josm/plugins/pbf/src/org/openstreetmap/josm/plugins/pbf/io/PbfWriter.java
===================================================================
--- /applications/editors/josm/plugins/pbf/src/org/openstreetmap/josm/plugins/pbf/io/PbfWriter.java	(revision 35824)
+++ /applications/editors/josm/plugins/pbf/src/org/openstreetmap/josm/plugins/pbf/io/PbfWriter.java	(revision 35825)
@@ -21,4 +21,5 @@
 import org.openstreetmap.josm.data.osm.Way;
 import org.openstreetmap.josm.gui.layer.OsmDataLayer;
+import org.openstreetmap.josm.tools.Logging;
 
 import crosby.binary.BinarySerializer;
@@ -126,5 +127,5 @@
                     int uid = e.getUser() == null ? -1 : (int) e.getUser().getId();
                     int userSid = stable.getIndex(getUserId(e));
-                    int timestamp = (int) (e.getTimestamp().getTime() / date_granularity);
+                    int timestamp = (int) (e.getInstant().toEpochMilli() / date_granularity);
                     int version = e.getVersion();
                     long changeset = e.getChangesetId();
@@ -150,5 +151,5 @@
                         b.setUserSid(stable.getIndex(e.getUser().getName()));
                     }
-                    b.setTimestamp((int) (e.getTimestamp().getTime() / date_granularity));
+                    b.setTimestamp((int) (e.getInstant().toEpochMilli() / date_granularity));
                     b.setVersion(e.getVersion());
                     b.setChangeset(e.getChangesetId());
@@ -435,4 +436,5 @@
             } else {
                 // No data. Is this an empty file?
+                Logging.debug("No PBF data. Is this an empty file?");
             }
         }
