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 Apr 20, 2022
1 parent 436f5fb commit 71d003e
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
1 change: 1 addition & 0 deletions .bsp/pants.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"name": "Pants", "version": "2.12.0.dev1", "bspVersion": "2.0.0", "languages": ["java", "scala"], "argv": ["./.pants.d/bsp/scripts/run-bsp.sh"]}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@

# Editor specific files
*.swp
/.idea/
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.0rc3"
pants_version = "2.12.0.dev1"
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 71d003e

Please sign in to comment.