IMPORTANT: The Bazel docs have moved! Please update your bookmark to https://bazel.build/rules/lib/java_proto_common

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

Extensions > API reference > java_proto_common

java_proto_common

Helper class for Java proto compilation.

has_proto_sources

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.

Parameters

Parameter Description
target required
The proto_library target.