1+ import %workspace%/../tools/preset.bazelrc
2+ import %workspace%/tools/java17.bazelrc
3+
14# Automatically apply --config=linux, --config=windows etc
25common --enable_platform_specific_config
36
@@ -6,32 +9,6 @@ common --experimental_isolated_extension_usages
69
710# Aspect recommended Bazel flags when using rules_java and rules_jvm_external
811
9- # Pin java versions to desired language level
10- # See https://bazel.build/docs/bazel-and-java#java-versions
11- # and https://en.wikipedia.org/wiki/Java_version_history
12-
13- # What version of Java are the source files in this repo?
14- # See https://bazel.build/docs/user-manual#java-language-version
15- common --java_language_version=17
16-
17- # The Java language version used to build tools that are executed during a build
18- # See https://bazel.build/docs/user-manual#tool-java-language-version
19- common --tool_java_language_version=17
20-
21- # The version of JVM to use to execute the code and run the tests.
22- # NB: The default value is local_jdk which is non-hermetic.
23- # See https://bazel.build/docs/user-manual#java-runtime-version
24- common --java_runtime_version=remotejdk_17
25-
26- # The version of JVM used to execute tools that are needed during a build.
27- # See https://bazel.build/docs/user-manual#tool-java-runtime-version
28- common --tool_java_runtime_version=remotejdk_17
29-
30- # Repository rules, such as rules_jvm_external: put Bazel's JDK on the path.
31- # Avoids non-hermeticity from dependency on a JAVA_HOME pointing at a system JDK
32- # see https://github.com/bazelbuild/rules_jvm_external/issues/445
33- common --repo_env=JAVA_HOME=../bazel_tools/jdk
34-
3512common --incompatible_enable_proto_toolchain_resolution
3613common --@aspect_rules_ts//ts:skipLibCheck=always
3714
@@ -42,8 +19,5 @@ startup --windows_enable_symlinks
4219common:linux --action_env=BAZEL_CXXOPTS="-std=c++20"
4320common:windows --action_env=BAZEL_CXXOPTS="/std:c++20"
4421
45- # ensure that minimal other envvars are passed by clang-tidy run_shell
46- common --incompatible_strict_action_env
47-
4822# Do not autoload any legacy symbols that are now provided in separate repos.
4923common --incompatible_autoload_externally=
0 commit comments