-
I've cloned the repo (commit bd1fe1a) and built locally. Then, in a project I use it as described in readme. When building the project the task :pbandk:generateProto runs endlessly (at least 10 minutes) while the processor is idle. My build.gradle.kts: import com.google.protobuf.gradle.*
plugins {
kotlin("jvm")
id("java")
id("com.google.protobuf") version "0.8.17"
}
val protocVersion = "3.18.0"
dependencies {
implementation("com.google.protobuf:protobuf-java:$protocVersion")
implementation("pro.streem.pbandk:pbandk-runtime:0.11.0")
protobuf(files("../proto"))
}
protobuf {
protoc {
path = "<local path>/pbandk/protoc-gen-pbandk/jvm/build/install/protoc-gen-pbandk/bin/protoc-gen-pbandk.bat"
}
} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I think you're configuring the protobuf gradle plugin incorrectly. With this configuration:
the gradle plugin is trying to use 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
P.S. you don't need a dependency on |
Beta Was this translation helpful? Give feedback.
I think you're configuring the protobuf gradle plugin incorrectly. With this configuration:
the gradle plugin is trying to use
protoc-gen-pbandk
instead ofprotoc
.protoc-gen-pbandk
is not a replacement forprotoc
, it is a plugin that is called byprotoc
.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: