-
Notifications
You must be signed in to change notification settings - Fork 16
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
Use protobuf-maven-plugin to compile extensions automatically #17
Conversation
…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.
Closing and re-opening, which should hopefully trigger Travis... |
@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)? |
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 |
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... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Kurt!
This PR (which is built on top of #16) adds
protobuf-maven-plugin
to automatically invokeprotoc
as part of the build process (using a build ofprotoc
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 togtfs-realtime.proto
that would matter in this context would be entirely new entities (and even then only if we wanted to extend them).