Skip to content

Commit 9d5c2a4

Browse files
committed
Enable BSP support for the repository.
1 parent c9ec0ee commit 9d5c2a4

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

Diff for: .gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,7 @@
66

77
# Editor specific files
88
*.swp
9+
/.idea/
10+
11+
# Written by the `./pants experimental-bsp` command on a user-by-user basis.
12+
/.bsp/

Diff for: bsp-groups.toml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[groups.default]
2+
addresses = [
3+
"src/jvm::",
4+
"tests/jvm::",
5+
]
6+
resolve = "jvm:jvm-default"

Diff for: pants.toml

+8-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Licensed under the Apache License, Version 2.0 (see LICENSE).
33

44
[GLOBAL]
5-
pants_version = "2.11.0"
5+
pants_version = "2.13.0.dev0"
66
backend_packages = [
77
# This repository demonstrates a mix of Java and Scala, and so both backends are enabled. But each
88
# backend can be used independently, so there is no need to expose Scala BUILD file
@@ -22,7 +22,13 @@ backend_packages = [
2222
# directory, organized by type.
2323
#
2424
# See https://www.pantsbuild.org/docs/source-roots for more information.
25-
root_patterns = ["/src/*"]
25+
root_patterns = [
26+
"/src/*",
27+
"/tests/*",
28+
]
29+
30+
[experimental-bsp]
31+
groups_config_files = ["bsp-groups.toml"]
2632

2733
[javac]
2834
args = [

0 commit comments

Comments
 (0)