1# Include debug info in the compiled jars 2build --javacopt=-g 3build --host_javacopt=-g 4 5# Disable The Guava Beta Checker. 6# TODO(ronshapiro): explore how much work it would be to reenable this 7build --javacopt="-Xep:BetaApi:OFF" 8build --host_javacopt="-Xep:BetaApi:OFF" 9 10# Note: This flag is required to prevent actions from clashing with each other 11# when reading/writing tmp files. Without this flag we get errors like: 12# 13# Error: Cannot use file /tmp/hsperfdata_runner/12 because it is locked by 14# another process 15# 16# This flag will be enabled by default in Bazel 7.0.0, but for now we enable it 17# manually. For more details: https://github.com/bazelbuild/bazel/issues/3236. 18build --incompatible_sandbox_hermetic_tmp 19 20# Sets the JDK for compiling sources and executing tests. 21build --java_language_version=18 22build --tool_java_language_version=18 23build --java_runtime_version=remotejdk_18 24build --tool_java_runtime_version=remotejdk_18 25 26# Default source/target versions. 27build --javacopt="-source 8 -target 8" 28 29# Workaround for https://openjdk.java.net/jeps/411. 30# See https://github.com/bazelbuild/bazel/issues/14502#issuecomment-1018366245. 31build --jvmopt="-Djava.security.manager=allow" 32build --jvmopt="--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED" 33