forked from square/dagger
-
Notifications
You must be signed in to change notification settings - Fork 2k
/
Copy path.bazelrc
34 lines (28 loc) · 1.39 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
34
# Allows globs to match no files (this was the default before Bazel 7).
# TODO(bcorso): Clean up globs that don't match any files.
common --incompatible_disallow_empty_glob=False
# Sets the disk cache directory and limit the max size. This is a new feature in
# Bazel 7 that allows us to ensure we're under the 10GB limit for GitHub Actions
# cache (without this flag a single bazel test will use over 10GB of cache).
build --disk_cache=~/.cache/bazel_github
build --experimental_disk_cache_gc_max_size=2G
# Include debug info in the compiled jars
build --javacopt=-g
build --host_javacopt=-g
# Disable The Guava Beta Checker.
# TODO(ronshapiro): explore how much work it would be to reenable this
build --javacopt="-Xep:BetaApi:OFF"
build --host_javacopt="-Xep:BetaApi:OFF"
# Sets the JDK for compiling sources.
# TODO(b/394093156): Upgrade to JDK 21.
build --java_language_version=17
build --tool_java_language_version=17
build --java_runtime_version=remotejdk_17
build --tool_java_runtime_version=remotejdk_17
# Default source/target to 8 and disable associated deprecation warnings.
build --javacopt="-source 8 -target 8"
build --javacopt="-Xlint:-options"
# Workaround for https://openjdk.java.net/jeps/411.
# See https://github.com/bazelbuild/bazel/issues/14502#issuecomment-1018366245.
build --jvmopt="-Djava.security.manager=allow"
build --jvmopt="--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED"