You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using a Kotlin Gradle project with the com.google.protobuf and build.buf plugins, and am confused about how to use protovalidate-java with this setup. A reference example configuration of how to configure a Kotlin Gradle project with this library would save a lot of time and probably increase adoption.
The context of my project started as a multi-module gradle project compiling multiple proto languages, using the com.google.protobuf and build.buf plugins. I got stuck trying to figure out how to incorporate the protovalidate plugin using its directions into my gradle-flavored configurations settings in the .gradle.kts file.
Next I tried removing the com.google.protobuf plugin usage and instead use the buf generate CLI directly and pointed my IDE at the generated sources, which seems like a cleaner path anyway for a multi-language project. My code compiles, but I'm not seeing validation happen, and don't have proper IDE support for the buf/validate/validate.proto file as shown in this screenshot.
I can create a sample repo if it'd be useful to debug my situation, and am happy to submit a PR with a reference example if I can get past these new user issues.
The text was updated successfully, but these errors were encountered:
I'm closing this issue since I haven't heard any interest from the maintainers to add any of this to the project, but I'll keep the linked project around for anyone that finds this in the future and is looking for a working example for this timeframe.
I'm using a Kotlin Gradle project with the
com.google.protobuf
andbuild.buf
plugins, and am confused about how to use protovalidate-java with this setup. A reference example configuration of how to configure a Kotlin Gradle project with this library would save a lot of time and probably increase adoption.The context of my project started as a multi-module gradle project compiling multiple proto languages, using the
com.google.protobuf
andbuild.buf
plugins. I got stuck trying to figure out how to incorporate the protovalidate plugin using its directions into my gradle-flavored configurations settings in the .gradle.kts file.Next I tried removing the
com.google.protobuf
plugin usage and instead use thebuf generate
CLI directly and pointed my IDE at the generated sources, which seems like a cleaner path anyway for a multi-language project. My code compiles, but I'm not seeing validation happen, and don't have proper IDE support for thebuf/validate/validate.proto
file as shown in this screenshot.I can create a sample repo if it'd be useful to debug my situation, and am happy to submit a PR with a reference example if I can get past these new user issues.
The text was updated successfully, but these errors were encountered: