Closed anandps closed 5 years ago
Unfortunately, "at this time, Reactor-gRPC with Gradle only supports bash-based environments. Windows users will need to build using Windows Subsystem for Linux (win 10), Gitbash, or Cygwin." https://github.com/salesforce/reactive-grpc/tree/master/reactor#gradle
This limitation is due to how protobuf-gradle-plugin
handles (or doesn't handle) java plugins. https://github.com/google/protobuf-gradle-plugin/issues/31
Thanks for your response! Yes, i am using the Gitbash. Perhaps it works only for the linux subsystem?(Doc mentioned Gitbash & cygwin)
Hmm... Try WSL. I don't have a Windows machine to test.
As a workaround you can call the maven plugin from a Gradle task.
Were you able to get the gradle->maven or WSL workaround working, @anandps?
yes, tried both. WSL works fine and for gradle->maven workaround, followed this https://github.com/cbornet/generator-jhipster-grpc/blob/v0.14.1/generators/app/templates/_grpc.gradle. I see that the doc is already updated with "Windows users will need to build using Windows Subsystem for Linux (win 10) or invoke the Maven protobuf plugin with Gradle." :)
I'm working on a more complete solution: https://github.com/salesforce/grpc-java-contrib/pull/115
Canteen will let me package jars as self executing executables for each platform. Reactive-gRPC 1.0.0 will have native support for Windows+Gradle #186
1.0.0 is now out. To use it, remove the jdk8@jar
from the gradle reference.
reactor-grpc with gradle not working in windows when executed using Gitbash. protoc errors out with "%1 is not a valid Win32 application.". build.gradle
Error