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

Download protoc from maven for all protoc tasks #150

Merged
merged 2 commits into from
May 7, 2021
Merged

Conversation

garyp
Copy link
Collaborator

@garyp garyp commented Apr 29, 2021

We no longer need to pass protoc.path to gradle, nor download and compile protoc manually, when building pbandk. The protobuf source does still need to be downloaded for running conformance tests since the conformance test runner is not available as a maven artifact.

This functionality was already being used by the DescriptorProtocTask in protoc-gen-kotlin. That task was a copy of the ProtocTask with some changes made. This PR updates ProtocTask so it can be used as the parent for DescriptorProtocTask.

Also updated protoc-gen-kotlin's generateProto task to use the automatically downloaded proto files that were added in the previous PR.

@garyp garyp force-pushed the protoc-via-maven branch from 3d4297d to 9623902 Compare April 30, 2021 00:23
@dustinbrown dustinbrown self-requested a review May 7, 2021 05:11
Copy link
Contributor

@dustinbrown dustinbrown left a comment

Choose a reason for hiding this comment

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

Looks great, thanks for doing this! 👍

CHANGELOG.md Outdated Show resolved Hide resolved
buildSrc/build.gradle.kts Show resolved Hide resolved
garyp added 2 commits May 7, 2021 07:15
…y downloaded proto files

This pulled in a newer version of `plugin.proto` with a recently-added field.
We no longer need to pass `protoc.path` to gradle, nor download and
compile `protoc` manually, when building pbandk. The protobuf source
does still need to be downloaded for running conformance tests since the
conformance test runner is not available as a maven artifact.

This functionality was already being used by the `DescriptorProtocTask`
in `protoc-gen-kotlin`. That task was a copy of the `ProtocTask` with
some changes made. This PR updates `ProtocTask` so it can be used as the
parent for `DescriptorProtocTask`.
@garyp garyp force-pushed the protoc-via-maven branch from 9623902 to 1c863f1 Compare May 7, 2021 14:17
@garyp garyp merged commit e4655f6 into master May 7, 2021
@garyp garyp deleted the protoc-via-maven branch May 7, 2021 15:55
@garyp garyp linked an issue May 8, 2021 that may be closed by this pull request
@garyp garyp mentioned this pull request May 8, 2021
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.

Use protoc from an artifact
2 participants