Skip to content

Commit

Permalink
Enable BSP support for the repository.
Browse files Browse the repository at this point in the history
  • Loading branch information
stuhood committed May 10, 2022
1 parent c9ec0ee commit 9d5c2a4
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@

# Editor specific files
*.swp
/.idea/

# Written by the `./pants experimental-bsp` command on a user-by-user basis.
/.bsp/
6 changes: 6 additions & 0 deletions bsp-groups.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[groups.default]
addresses = [
"src/jvm::",
"tests/jvm::",
]
resolve = "jvm:jvm-default"
10 changes: 8 additions & 2 deletions pants.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Licensed under the Apache License, Version 2.0 (see LICENSE).

[GLOBAL]
pants_version = "2.11.0"
pants_version = "2.13.0.dev0"
backend_packages = [
# This repository demonstrates a mix of Java and Scala, and so both backends are enabled. But each
# backend can be used independently, so there is no need to expose Scala BUILD file
Expand All @@ -22,7 +22,13 @@ backend_packages = [
# directory, organized by type.
#
# See https://www.pantsbuild.org/docs/source-roots for more information.
root_patterns = ["/src/*"]
root_patterns = [
"/src/*",
"/tests/*",
]

[experimental-bsp]
groups_config_files = ["bsp-groups.toml"]

[javac]
args = [
Expand Down

0 comments on commit 9d5c2a4

Please sign in to comment.