diff --git a/application/pom.xml b/application/pom.xml
index c3b4a6ee582..2a6e3043ba2 100644
--- a/application/pom.xml
+++ b/application/pom.xml
@@ -312,9 +312,9 @@
- org.openstreetmap.osmosis
- osmosis-osm-binary
- 0.48.3
+ org.openstreetmap.pbf
+ osmpbf
+ 1.6.0
diff --git a/application/src/main/java/org/opentripplanner/osm/OsmParser.java b/application/src/main/java/org/opentripplanner/osm/OsmParser.java
index 8a5f8e32448..4b443e6a505 100644
--- a/application/src/main/java/org/opentripplanner/osm/OsmParser.java
+++ b/application/src/main/java/org/opentripplanner/osm/OsmParser.java
@@ -1,11 +1,11 @@
package org.opentripplanner.osm;
+import crosby.binary.BinaryParser;
+import crosby.binary.Osmformat;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
-import org.openstreetmap.osmosis.osmbinary.BinaryParser;
-import org.openstreetmap.osmosis.osmbinary.Osmformat;
import org.opentripplanner.graph_builder.module.osm.OsmDatabase;
import org.opentripplanner.osm.model.OsmMemberType;
import org.opentripplanner.osm.model.OsmNode;
diff --git a/application/src/main/java/org/opentripplanner/osm/OsmProvider.java b/application/src/main/java/org/opentripplanner/osm/OsmProvider.java
index 597fd516b0e..91944a95b86 100644
--- a/application/src/main/java/org/opentripplanner/osm/OsmProvider.java
+++ b/application/src/main/java/org/opentripplanner/osm/OsmProvider.java
@@ -1,11 +1,11 @@
package org.opentripplanner.osm;
+import crosby.binary.file.BlockInputStream;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.time.ZoneId;
-import org.openstreetmap.osmosis.osmbinary.file.BlockInputStream;
import org.opentripplanner.datastore.api.DataSource;
import org.opentripplanner.datastore.api.FileType;
import org.opentripplanner.datastore.file.FileDataSource;
diff --git a/application/src/main/java/org/opentripplanner/updater/alert/GtfsRealtimeAlertsUpdater.java b/application/src/main/java/org/opentripplanner/updater/alert/GtfsRealtimeAlertsUpdater.java
index a5be5ef4185..de6383c6016 100644
--- a/application/src/main/java/org/opentripplanner/updater/alert/GtfsRealtimeAlertsUpdater.java
+++ b/application/src/main/java/org/opentripplanner/updater/alert/GtfsRealtimeAlertsUpdater.java
@@ -68,7 +68,7 @@ protected void runPolling() {
final FeedMessage feed = otpHttpClient.getAndMap(
URI.create(url),
this.headers.asMap(),
- FeedMessage.PARSER::parseFrom
+ FeedMessage::parseFrom
);
long feedTimestamp = feed.getHeader().getTimestamp();
diff --git a/application/src/main/java/org/opentripplanner/updater/trip/MqttGtfsRealtimeUpdater.java b/application/src/main/java/org/opentripplanner/updater/trip/MqttGtfsRealtimeUpdater.java
index 20b49ed022f..0580cd4ea63 100644
--- a/application/src/main/java/org/opentripplanner/updater/trip/MqttGtfsRealtimeUpdater.java
+++ b/application/src/main/java/org/opentripplanner/updater/trip/MqttGtfsRealtimeUpdater.java
@@ -138,7 +138,7 @@ public void messageArrived(String topic, MqttMessage message) {
UpdateIncrementality updateIncrementality = FULL_DATASET;
try {
// Decode message
- GtfsRealtime.FeedMessage feedMessage = GtfsRealtime.FeedMessage.PARSER.parseFrom(
+ GtfsRealtime.FeedMessage feedMessage = GtfsRealtime.FeedMessage.parseFrom(
message.getPayload()
);
List feedEntityList = feedMessage.getEntityList();
diff --git a/application/src/test/java/org/opentripplanner/GtfsTest.java b/application/src/test/java/org/opentripplanner/GtfsTest.java
index 5d548e4012c..05b7bfbf4f6 100644
--- a/application/src/test/java/org/opentripplanner/GtfsTest.java
+++ b/application/src/test/java/org/opentripplanner/GtfsTest.java
@@ -221,7 +221,7 @@ protected void setUp() throws Exception {
try {
InputStream inputStream = new FileInputStream(gtfsRealTime);
- FeedMessage feedMessage = FeedMessage.PARSER.parseFrom(inputStream);
+ FeedMessage feedMessage = FeedMessage.parseFrom(inputStream);
List feedEntityList = feedMessage.getEntityList();
List updates = new ArrayList<>(feedEntityList.size());
for (FeedEntity feedEntity : feedEntityList) {
diff --git a/gtfs-realtime-protobuf/pom.xml b/gtfs-realtime-protobuf/pom.xml
index e4465a4d366..d3c3305b9b2 100644
--- a/gtfs-realtime-protobuf/pom.xml
+++ b/gtfs-realtime-protobuf/pom.xml
@@ -11,10 +11,15 @@
gtfs-realtime-protobuf
OpenTripPlanner - GTFS Realtime (protobuf)
+
+ 4.28.3
+
+
com.google.protobuf
protobuf-java
+ ${protobuf.version}
@@ -46,7 +51,7 @@
- com.google.protobuf:protoc:3.22.0:exe:${os.detected.classifier}
+ com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier}
diff --git a/pom.xml b/pom.xml
index 27eada4007b..4108973c7ff 100644
--- a/pom.xml
+++ b/pom.xml
@@ -392,7 +392,7 @@
com.google.cloud
libraries-bom
- 26.48.0
+ 26.51.0
pom
import