-
Notifications
You must be signed in to change notification settings - Fork 1
/
.bazelrc
33 lines (26 loc) · 1.09 KB
/
.bazelrc
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
build --test_output=all
# Required for rules_scala
common --incompatible_java_common_parameters=false
# Note: Needed on my personal laptop
# Workaround for https://github.com/bazelbuild/bazel/pull/12882. Issue should be fixed in >= 4.1.0
# common --features=-debug_prefix_map_pwd_is_dot
# Configure Java version
# --javabase set for Github Codespaces which doesn't have Java installed.
build --java_runtime_version=remotejdk_11
build --java_language_version=11
build --java_runtime_version=remotejdk_11
build --tool_java_runtime_version=remotejdk_11
# Required for rules_scala
build --javabase=@bazel_tools//tools/jdk:remote_jdk11
# https://github.com/bazelbuild/rules_jvm_external/issues/445
build --repo_env=JAVA_HOME=../bazel_tools/jdk
build --sandbox_default_allow_network=false
build --remote_local_fallback
# For when I want to use `gdb`, do `bazel build --config debug`.
# Ref: https://bazel.build/contribute/getting-started
build:debug -c dbg
build:debug --javacopt="-g"
build:debug --copt="-g"
build:debug --strip="never"
test --incompatible_exclusive_test_sandboxed
try-import %workspace%/.bazelrc.user