forked from square/dagger
-
Notifications
You must be signed in to change notification settings - Fork 2k
/
.bazelrc
32 lines (27 loc) · 1.25 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
# 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"
# Note: This flag is required to prevent actions from clashing with each other
# when reading/writing tmp files. Without this flag we get errors like:
#
# Error: Cannot use file /tmp/hsperfdata_runner/12 because it is locked by
# another process
#
# This flag will be enabled by default in Bazel 7.0.0, but for now we enable it
# manually. For more details: https://github.com/bazelbuild/bazel/issues/3236.
build --incompatible_sandbox_hermetic_tmp
# Sets the JDK for compiling sources and executing tests.
build --java_language_version=18
build --tool_java_language_version=18
build --java_runtime_version=remotejdk_18
build --tool_java_runtime_version=remotejdk_18
# Default source/target versions.
build --javacopt="-source 8 -target 8"
# 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"