- Download and setup Protocol Buffer release from https://github.com/protocolbuffers/protobuf/releases (if you haven't already done this for another language). As of February 2019 we're using v3.7 release, which is compatible with proto2 .proto files.
- Download Java JDK
- Download and install Maven
Regenerate the language binding source from gtfs-realtime.proto.
From the project /java
folder, run:
protoc --java_out=src/main/java --proto_path=.. ../gtfs-realtime.proto
Add the license header back to the generated source file.
Test the generated code:
mvn verify
We're hosting releases on the Maven Central Repository.
Note that we are using GitHub actions to publish new releases. These are the steps that were followed for publishing the gtfs-realtime-bindings
library on ossrh
repository using GitHub actions.
To sign the application (required for publishing to Maven Central) we use a GPG key as described here.
TODO