blob: b61ed98b16f445d361a73c57da43d12243201369 [file] [log] [blame]
# 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
common --@protobuf//bazel/toolchains:prefer_prebuilt_protoc
# 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
# Define configuration using remotejdk_25, executes using remotejdk_25 or local_jdk
build:build_shared --java_language_version=25
build:build_shared --java_runtime_version=remotejdk_25
build:build_shared --tool_java_language_version=25
build:build_shared --tool_java_runtime_version=remotejdk_25
# Builds using remotejdk_25, executes using remotejdk_25 or local_jdk
# Avoid warnings for non default configurations:
# build --config=build_shared
build --java_language_version=25
build --java_runtime_version=remotejdk_25
build --tool_java_language_version=25
build --tool_java_runtime_version=remotejdk_25
# Builds and executes on RBE using remotejdk_25
build:remote --config=config_gcp
build:remote --config=build_shared
# Define remote21 configuration alias
build:remote_gcp --config=remote
# Builds and executes on BuildBuddy RBE using remotejdk_25
build:remote_bb --config=config_bb
build:remote_bb --config=build_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=config_gcp
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=config_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