-
-
Notifications
You must be signed in to change notification settings - Fork 646
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
:allow plugins to provide builtin goals
- Loading branch information
Showing
15 changed files
with
108 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Copyright 2024 Pants project contributors (see CONTRIBUTORS.md). | ||
# Licensed under the Apache License, Version 2.0 (see LICENSE). | ||
|
||
python_sources() |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Copyright 2024 Pants project contributors (see CONTRIBUTORS.md). | ||
# Licensed under the Apache License, Version 2.0 (see LICENSE). | ||
|
||
from pants.bsp.goal import BSPGoal | ||
from pants.bsp.rules import rules as bsp_rules | ||
|
||
|
||
def builtin_goals(): | ||
return (BSPGoal,) | ||
|
||
|
||
def rules(): | ||
return (*bsp_rules(),) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Copyright 2024 Pants project contributors (see CONTRIBUTORS.md). | ||
# Licensed under the Apache License, Version 2.0 (see LICENSE). | ||
|
||
python_sources() |
Empty file.
29 changes: 29 additions & 0 deletions
29
src/python/pants/backend/experimental/java/bsp/register.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Copyright 2024 Pants project contributors (see CONTRIBUTORS.md). | ||
# Licensed under the Apache License, Version 2.0 (see LICENSE). | ||
|
||
from pants.backend.experimental.bsp.register import builtin_goals as bsp_builtin_goals | ||
from pants.backend.experimental.bsp.register import rules as bsp_rules | ||
from pants.backend.experimental.java.register import build_file_aliases as java_build_file_aliases | ||
from pants.backend.experimental.java.register import rules as java_rules | ||
from pants.backend.experimental.java.register import target_types as java_target_types | ||
from pants.backend.java.bsp.rules import rules as java_bsp_rules | ||
|
||
|
||
def builtin_goals(): | ||
return bsp_builtin_goals() | ||
|
||
|
||
def target_types(): | ||
return java_target_types() | ||
|
||
|
||
def rules(): | ||
return ( | ||
*java_rules(), | ||
*bsp_rules(), | ||
*java_bsp_rules(), | ||
) | ||
|
||
|
||
def build_file_aliases(): | ||
return java_build_file_aliases() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Copyright 2024 Pants project contributors (see CONTRIBUTORS.md). | ||
# Licensed under the Apache License, Version 2.0 (see LICENSE). | ||
|
||
python_sources() |
Empty file.
28 changes: 28 additions & 0 deletions
28
src/python/pants/backend/experimental/scala/bsp/register.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Copyright 2024 Pants project contributors (see CONTRIBUTORS.md). | ||
# Licensed under the Apache License, Version 2.0 (see LICENSE). | ||
from pants.backend.experimental.bsp.register import builtin_goals as bsp_builtin_goals | ||
from pants.backend.experimental.bsp.register import rules as bsp_rules | ||
from pants.backend.experimental.scala.register import build_file_aliases as scala_build_file_aliases | ||
from pants.backend.experimental.scala.register import rules as scala_rules | ||
from pants.backend.experimental.scala.register import target_types as scala_target_types | ||
from pants.backend.scala.bsp.rules import rules as scala_bsp_rules | ||
|
||
|
||
def builtin_goals(): | ||
return bsp_builtin_goals() | ||
|
||
|
||
def target_types(): | ||
return scala_target_types() | ||
|
||
|
||
def rules(): | ||
return ( | ||
*scala_rules(), | ||
*bsp_rules(), | ||
*scala_bsp_rules(), | ||
) | ||
|
||
|
||
def build_file_aliases(): | ||
return scala_build_file_aliases() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters