forked from JetBrains/bazel-bsp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bazelrc
19 lines (16 loc) · 2.21 KB
/
.bazelrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
build --java_language_version=11
build --tool_java_language_version=11
build --javacopt="-Xep:WildcardImport:ERROR"
common --enable_bzlmod
# To update these lines, execute
# `bazel run @rules_bazel_integration_test//tools:update_deleted_packages`
build --deleted_packages=.bazelbsp,.bazelbsp/aspects,e2e/test-resources/cpp-project/example,e2e/test-resources/local-jdk-project/example,e2e/test-resources/python-project/example,e2e/test-resources/python-project/lib,e2e/test-resources/python-project/test,e2e/test-resources/remote-jdk-project/example,e2e/test-resources/sample-repo/environment_variables,e2e/test-resources/sample-repo/java_targets,e2e/test-resources/sample-repo/java_targets/subpackage,e2e/test-resources/sample-repo/manual_target,e2e/test-resources/sample-repo/scala_targets,e2e/test-resources/sample-repo/target_with_dependency,e2e/test-resources/sample-repo/target_without_args,e2e/test-resources/sample-repo/target_without_jvm_flags,e2e/test-resources/sample-repo/target_without_main_class,e2e/test-resources/sample-repo/target_with_resources
query --deleted_packages=.bazelbsp,.bazelbsp/aspects,e2e/test-resources/cpp-project/example,e2e/test-resources/local-jdk-project/example,e2e/test-resources/python-project/example,e2e/test-resources/python-project/lib,e2e/test-resources/python-project/test,e2e/test-resources/remote-jdk-project/example,e2e/test-resources/sample-repo/environment_variables,e2e/test-resources/sample-repo/java_targets,e2e/test-resources/sample-repo/java_targets/subpackage,e2e/test-resources/sample-repo/manual_target,e2e/test-resources/sample-repo/scala_targets,e2e/test-resources/sample-repo/target_with_dependency,e2e/test-resources/sample-repo/target_without_args,e2e/test-resources/sample-repo/target_without_jvm_flags,e2e/test-resources/sample-repo/target_without_main_class,e2e/test-resources/sample-repo/target_with_resources
# From https://blog.aspect.dev/bazelrc-flags
build --incompatible_strict_action_env
startup --host_jvm_args=-DBAZEL_TRACK_SOURCE_DIRECTORIES=1
build --noexperimental_check_output_files
build --noexperimental_check_external_repository_files
# Enable again once we update to bazel 7
# https://github.com/bazelbuild/bazel/issues/19217
#build --experimental_reuse_sandbox_directories