Skip to content

Commit ec598d5

Browse files
committed
Enable BSP support for the repository.
1 parent 5658e8e commit ec598d5

File tree

4 files changed

+16
-2
lines changed

4 files changed

+16
-2
lines changed

.bsp/pants.json

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"name": "Pants", "version": "2.12.0.dev1", "bspVersion": "2.0.0", "languages": ["java", "scala"], "argv": ["./.pants.d/bsp/scripts/run-bsp.sh"]}

.gitignore

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

77
# Editor specific files
88
*.swp
9+
/.idea/

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"

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.0rc3"
5+
pants_version = "2.12.0.dev1"
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)