Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add BSP support to the example repository #15

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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