Skip to content

Commit c20606f

Browse files
committed
refactor: implement all buildtools list in terms of those available for
auto-indexing
1 parent 9353672 commit c20606f

File tree

1 file changed

+3
-8
lines changed
  • scip-java/src/main/scala/com/sourcegraph/scip_java/buildtools

1 file changed

+3
-8
lines changed

scip-java/src/main/scala/com/sourcegraph/scip_java/buildtools/BuildTool.scala

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,9 @@ abstract class BuildTool(val name: String, index: IndexCommand) {
1919

2020
object BuildTool {
2121
def all(index: IndexCommand): List[BuildTool] =
22-
List(
23-
new ScipBuildTool(index),
24-
new BazelBuildTool(index),
25-
new GradleBuildTool(index),
26-
new MavenBuildTool(index),
27-
new SbtBuildTool(index),
28-
new MillBuildTool(index)
29-
)
22+
// We don't support Bazel for auto-indexing, but if it's
23+
// detected, we should at least give a meaningful error message
24+
autoOrdered(index) :+ new BazelBuildTool(index)
3025

3126
def autoOrdered(index: IndexCommand): List[BuildTool] =
3227
List(

0 commit comments

Comments
 (0)