Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use protobuf-maven-plugin to compile extensions automatically #17

Merged
merged 5 commits into from
Sep 21, 2020

Conversation

kurtraschke
Copy link
Contributor

@kurtraschke kurtraschke commented Mar 13, 2020

This PR (which is built on top of #16) adds protobuf-maven-plugin to automatically invoke protoc as part of the build process (using a build of protoc which is packaged as a Maven artifact so it is not required to be installed locally).

In the future it would be nice to find some good way to get the canonical gtfs-realtime.proto into this repository automatically (or, perhaps, include it as a Maven dependency).

The brute-force solution to this would be to fetch https://raw.githubusercontent.com/google/transit/master/gtfs-realtime/proto/gtfs-realtime.proto as part of the build process (for example, with the Maven AntRun plugin), but it doesn't really matter much anyway, as the only updates to gtfs-realtime.proto that would matter in this context would be entirely new entities (and even then only if we wanted to extend them).

…indings:0.05; rebuild extensions.

This also necessitates bringing in the latest protobuf runtime explicitly, as the current version of protoc (and the runtime) is newer than what is used upstream.
@barbeau
Copy link
Member

barbeau commented Mar 13, 2020

Closing and re-opening, which should hopefully trigger Travis...

@barbeau barbeau closed this Mar 13, 2020
@barbeau barbeau reopened this Mar 13, 2020
@barbeau
Copy link
Member

barbeau commented Mar 13, 2020

@kurtraschke Sorry, I edited the README which caused conflicts with your changes. Would you mind resolving that (for some reason I can't via GitHub UI)?

@leonardehrenfried
Copy link

I'm quite interested in this change and wonder if it's possible to merge in.

In particular, I'd like to add the following change to the library and this PR would simplify adding it: google/transit@5ce5f04

@sheldonabrown
Copy link
Member

Sorry all, I'm still working with some projects using protoc 2.5 and protoc 2.6, so I've been hesitant to merge this. Perhaps I simply should branch for those to keep the project alive. Let me add another reminder...

Copy link
Member

@sheldonabrown sheldonabrown left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Kurt!

@sheldonabrown sheldonabrown merged commit addbaa4 into OneBusAway:master Sep 21, 2020
@kurtraschke kurtraschke deleted the build-with-plugin branch November 11, 2020 04:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants