Skip to content

Commit

Permalink
clean(build): Split .bazelproject & tools/eclipse/.managed-defaults.b…
Browse files Browse the repository at this point in the history
…azelproject
  • Loading branch information
vorburger committed Apr 15, 2024
1 parent e3e2100 commit d365a13
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .bazelproject
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@
# See https://github.com/salesforce/bazel-eclipse/blob/main/docs/common/projectviews.md for VS Code
# (with https://github.com/salesforce/bazel-vscode-java).

# tools/eclipse/.managed-defaults.bazelproject has Eclipse (and thus VSC) specific settings which IntelliJ doesn't dig.

directories:
.

derive_targets_from_directories: true

# https://github.com/salesforce/bazel-eclipse/issues/475
# https://github.com/salesforce/bazel-eclipse/blob/main/docs/common/projectviews.md#project-per-package
target_provisioning_strategy: project-per-package
1 change: 1 addition & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ common --incompatible_strict_action_env
# https://bazel.build/reference/command-line-reference#flag--test_output
test --test_output=errors

# https://github.com/salesforce/bazel-eclipse/blob/main/docs/common/classpath.md#basics-classpath
# https://bazel.build/reference/command-line-reference#flag--explicit_java_test_deps
# BOTH build and test HAVE to have this - otherwise it's broken due to frequent this:
# "Build option --explicit_java_test_deps has changed, discarding analysis cache."
Expand Down
6 changes: 6 additions & 0 deletions tools/eclipse/.managed-defaults.bazelproject
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# This extends //.bazelproject (which is primarily for IntelliJ) with required Bazel Eclipse settings.
# https://github.com/salesforce/bazel-eclipse/blob/main/docs/common/projectviews.md

# https://github.com/salesforce/bazel-eclipse/issues/475
# https://github.com/salesforce/bazel-eclipse/blob/main/docs/common/projectviews.md#project-per-package
target_provisioning_strategy: project-per-package

0 comments on commit d365a13

Please sign in to comment.