IMPORTANT: The Bazel docs have moved! Please update your bookmark to

You can read about the migration, and let us know what you think.

Extensions > API reference > java_proto_common


Helper class for Java proto compilation.


bool java_proto_common.has_proto_sources(target)

Returns whether the given proto_library target contains proto sources. If there are no sources it means that the proto_library is an alias library, which exports its dependencies.


Parameter Description
target required
The proto_library target.