Closed davidbilik closed 5 years ago
I've figured it out, I had some old dependency versions
On a separate note, you might want to remove the default java configuration if using java lite. The Gradle protobuf plugin adds it implicitly. It’s mentioned in more detail here. https://github.com/google/protobuf-gradle-plugin/blob/master/README.md#default-outputs
Also if you are using the kroto dslmarker option you’ll want to make sure you set your kroto out to javalite not java
all()*.builtins(){
remove java
}
ofNonTest()*.plugins {
grpc {
// Options added to --grpc_out
option 'lite'
}
kroto {
outputSubDir = "javalite"
option "ConfigPath=$krotoConfig"
}
}
I have a problem in buildtime with generated code, it seems to be using different naming of method names on a Grpc service than there actually is. I have a proto file like
and the generated
BookServiceGrpc
contains methodbut generated file from kroto have this method
and the problem is in
getGetBookMethod
. There is no such method and it fails withUnresolved reference: getGetBookMethod
i cant find anything about it in config. Am I doing something wrong? I've tried also another library for kotlin + coroutines (https://github.com/rouzwawi/grpc-kotlin) and the build problem was the sameNote - I am using this in Android project with protobuf-lite, here is my config: