-
Notifications
You must be signed in to change notification settings - Fork 270
Expand file tree
/
Copy path.bazelrc
More file actions
85 lines (65 loc) · 3.14 KB
/
.bazelrc
File metadata and controls
85 lines (65 loc) · 3.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# TODO(davido): Migrate all dependencies from WORKSPACE to MODULE.bazel
# https://issues.gerritcodereview.com/issues/303819949
# Remove hybrid mode option once bzlmod migration is completed
common --enable_workspace
common --enable_bzlmod --lockfile_mode=error
common --incompatible_enable_proto_toolchain_resolution
# Enable Gerrit-tree-only plugin checks (standalone plugin builds skip them).
common --@com_googlesource_gerrit_bazlets//flags:in_gerrit_tree=true
common --incompatible_disallow_struct_provider_syntax=false
common --incompatible_disallow_empty_glob=false
build --workspace_status_command="python3 ./tools/workspace_status.py"
build --repository_cache=~/.gerritcodereview/bazel-cache/repository
build --action_env=PATH
build --disk_cache=~/.gerritcodereview/bazel-cache/cas
# Builds using remotejdk_25, executes using remotejdk_25 or local_jdk
build --java_language_version=25
build --java_runtime_version=remotejdk_25
build --tool_java_language_version=25
build --tool_java_runtime_version=remotejdk_25
# Enables builds and execution on RBE
build:remote --config=config_gcp
# Define remote_gcp configuration alias
build:remote_gcp --config=remote
# Enables builds and execution on BuildBuddy RBE
build:remote_bb --config=config_bb
# Builds using remotejdk_21, executes using remotejdk_21 or local_jdk
build:build_java21_shared --java_language_version=21
build:build_java21_shared --java_runtime_version=remotejdk_21
build:build_java21_shared --tool_java_language_version=21
build:build_java21_shared --tool_java_runtime_version=remotejdk_21
build:java21 --config=build_java21_shared
# Builds and executes on RBE using remotejdk_21
build:remote21 --config=remote
build:remote21 --config=build_java21_shared
# Define remote21 configuration alias
build:remote21_gcp --config=remote21
# Builds and executes on BuildBuddy RBE using remotejdk_21
build:remote21_bb --config=remote_bb
build:remote21_bb --config=build_java21_shared
# Builds using remotejdk_25, executes using remotejdk_25 or local_jdk
build:build_java25_shared --java_language_version=25
build:build_java25_shared --java_runtime_version=remotejdk_25
build:build_java25_shared --tool_java_language_version=25
build:build_java25_shared --tool_java_runtime_version=remotejdk_25
build:java25 --config=build_java25_shared
# Builds and executes on RBE using remotejdk_25
build:remote25 --config=remote
build:remote25 --config=build_java25_shared
# Define remote25 configuration alias
build:remote25_gcp --config=remote25
# Builds and executes on BuildBuddy RBE using remotejdk_25
build:remote25_bb --config=remote_bb
build:remote25_bb --config=build_java25_shared
# Enable strict_action_env flag to. For more information on this feature see
# https://groups.google.com/forum/#!topic/bazel-discuss/_VmRfMyyHBk.
# This will be the new default behavior at some point (and the flag was flipped
# shortly in 0.21.0 - https://github.com/bazelbuild/bazel/issues/7026). Remove
# this flag here once flipped in Bazel again.
build --incompatible_strict_action_env
build --announce_rc
test --build_tests_only
test --test_output=errors
import %workspace%/tools/remote-bazelrc
# User-specific .bazelrc
try-import %workspace%/user.bazelrc