-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy path.bazelrc
More file actions
23 lines (17 loc) · 1.01 KB
/
Copy path.bazelrc
File metadata and controls
23 lines (17 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
common --enable_bzlmod
# Use built-in protoc
common --incompatible_enable_proto_toolchain_resolution
common --@com_google_protobuf//bazel/toolchains:prefer_prebuilt_protoc=true
# Ensure that we don't accidentally build protobuf or gRPC
common --per_file_copt=external/.*protobuf.*@--PROTOBUF_WAS_NOT_SUPPOSED_TO_BE_BUILT
common --host_per_file_copt=external/.*protobuf.*@--PROTOBUF_WAS_NOT_SUPPOSED_TO_BE_BUILT
common --per_file_copt=external/.*grpc.*@--GRPC_WAS_NOT_SUPPOSED_TO_BE_BUILT
common --host_per_file_copt=external/.*grpc.*@--GRPC_WAS_NOT_SUPPOSED_TO_BE_BUILT
build --java_runtime_version=remotejdk_11
build --java_language_version=11
# Hide Java 8 deprecation warnings.
common --javacopt=-Xlint:-options
# Remove flag once https://github.com/google/cel-spec/issues/508 and rules_jvm_external is fixed.
common --incompatible_autoload_externally=proto_library,cc_proto_library,java_proto_library,java_test,java_import
# Limit repository cache size by not caching extracted repository contents
build --repo_contents_cache=