Is your feature request related to a problem?
java_grpc_library passes the resolved java toolchain to java_common.compile to compile generated code. However, there are cases that users might need to further customize javac_opts, where the customization is not suitable to be done directly on the toolchain itself.
Describe the solution you'd like
_java_grpc_library and _java_lite_grpc_library (used by java_grpc_library) expose an attribute to receive customized javac_opts and pass it down to java_common.compile.
Describe alternatives you've considered
I was not able to find a reasonable alternative but I could have missed something.
Additional context