Skip to content

Windows - Task :pbandk:generateProto does not finish #167

Answered by garyp
mcpiroman asked this question in Q&A
Discussion options

You must be logged in to vote

I think you're configuring the protobuf gradle plugin incorrectly. With this configuration:

protobuf {
    protoc {
        path = "<local path>/pbandk/protoc-gen-pbandk/jvm/build/install/protoc-gen-pbandk/bin/protoc-gen-pbandk.bat"
    }
}

the gradle plugin is trying to use protoc-gen-pbandk instead of protoc. protoc-gen-pbandk is not a replacement for protoc, it is a plugin that is called by protoc.

You can see an example of how to use pbandk with the protobuf gradle plugin at https://github.com/streem/pbandk/blob/master/examples/gradle-and-jvm/build.gradle.kts. For your project, you probably want something like this in your build.gradle.kts file:

protobuf {
    protoc {
        artifa…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mcpiroman
Comment options

Answer selected by mcpiroman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #166 on October 03, 2021 03:28.