protoPath does not seem to work #3426
Replies: 1 comment 1 reply
-
|
I should have used dependencies {
protoSource(projects.libraries.protobuf.definitions)
}works just fine |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey there,
we have had enough from protoc and its code generation and therefore want to migrate over to wire.
Currently we have one gradle module with all proto definitions and the generated classes.
My plan is to split definitions and generated classes into multiple projects:
protocandwirewould then have a dependency ondefinitions.I tried to build the definitions library with and without
wiregradle plugin.The resulting jar is the same though. I can clearly see the protos in it.
Then, in
wireI want to actually generate the classes. This is my kts:plugins { id("library") alias(catalog.plugins.wire) } dependencies { protoPath(projects.libraries.protobuf.definitions) // implementation(projects.libraries.protobuf.definitions) // also tried uncommenting this one } wire { kotlin { escapeKotlinKeywords = true permitPackageCycles(true) } }Unfortunately, no classes are generated. Do you know why?
Cheers
Björn
Beta Was this translation helpful? Give feedback.
All reactions